# #2a1b58 color: Night Fog

#2a1b58 is rgb(42, 27, 88) in RGB and oklch(28.109% 0.10443 289.218) in OKLCH. Every other format, shade and contrast value is below.

Source: https://pickshade.com/color/2a1b58

## Formats

| Format | Value |
| --- | --- |
| HEX | #2a1b58 |
| RGB | rgb(42, 27, 88) |
| HSL | hsl(254.75, 53.04%, 22.55%) |
| HSB / HSV | hsv(254.75 69.32% 34.51%) |
| HWB | hwb(254.75 10.59% 65.49%) |
| CMYK | cmyk(52% 69% 0% 65%) |
| Lab | lab(14.91 20.95 -35.03) |
| LCH | lch(14.91 40.82 300.88) |
| OKLab | oklab(28.109% 0.03437 -0.09861) |
| OKLCH | oklch(28.109% 0.10443 289.218) |
| Display P3 | color(display-p3 0.1559 0.10833 0.33191) |
| Rec. 2020 | color(rec2020 0.09949 0.05754 0.27034) |
| Adobe RGB | color(a98-rgb 0.1676 0.12844 0.34129) |
| ProPhoto RGB | color(prophoto-rgb 0.14146 0.09554 0.25612) |
| Linear sRGB | color(srgb-linear 0.02315 0.01096 0.09759) |
| XYZ D65 | color(xyz-d65 0.03108 0.01981 0.09451) |
| XYZ D50 | color(xyz-d50 0.02828 0.01892 0.07107) |
| SwiftUI | Color(red: 0.165, green: 0.106, blue: 0.345) |
| UIKit | UIColor(red: 0.165, green: 0.106, blue: 0.345, alpha: 1) |
| Flutter / Compose | Color(0xFF2A1B58) |
| Android XML | #2A1B58 |

## Facts

- Closest name: Night Fog
- Hue family: Violet, soft very dark violet
- Closest Tailwind class: indigo-950
- Gamut: Inside sRGB: displays the same on any screen.
- Contrast with white: 15.04:1
- Contrast with black: 1.4:1

## Tints

#2a1b58, #3b3168, #4d4679, #615b89, #76719a, #8b88ab, #a19ebb, #b8b6cc, #cfcedd, #e7e6ee

## Shades

#2a1b58, #23164b, #1c113f, #160c33, #100828, #0a051d, #050212, #020109, #010003, #000000

## Tones

#2a1b58, #2a1d53, #29204f, #29214a, #292346, #292441, #28263d, #292738, #292833, #29282e

## Harmonies

- Complementary: #2a1b58, #2d2b00
- Split: #2a1b58, #3d2300, #023400
- Analogous: #2a1b58, #02255b, #3e1249
- Triadic: #2a1b58, #4d1300, #003522
- Tetradic: #2a1b58, #4b0931, #2d2b00, #003522
- Square: #2a1b58, #510613, #2d2b00, #003236
- Monochromatic: #2a1b58, #090026, #110036, #483c7c, #685ea1

## Questions about #2a1b58

### What color is #2a1b58?

#2a1b58 is soft very dark violet. The closest named color is Night Fog. In RGB it is rgb(42, 27, 88), in HSL hsl(254.75, 53.04%, 22.55%) and in OKLCH oklch(28.109% 0.10443 289.218).

### What colors go well with #2a1b58?

The complementary color of #2a1b58 is #2d2b00. For a calmer combination use the analogous colors #02255b and #3e1249. The triadic partners are #4d1300 and #003522.

### Is white or black text more readable on #2a1b58?

White text reads better on #2a1b58: white gives a contrast ratio of 15.04:1 and black gives 1.4:1. WCAG AA asks for at least 4.5:1 for body text.

### Is #2a1b58 a warm or cool color?

#2a1b58 is a cool color. In OKLCH its hue is 289 degrees, its lightness 28.1% and its chroma 0.104.
