#140C2E#140C2E
#140C2E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.065 H 289.5°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).
Color values
| HEX | #140C2E |
|---|---|
| RGB | rgb(20, 12, 46) |
| HSL | hsl(254, 59%, 11%) |
| HSV | hsv(254, 74%, 18%) |
| CMYK | cmyk(56.5%, 73.9%, 0%, 82%) |
| CIE-LAB | lab(5.50, 13.61, -20.92) |
| CIE-LCH | lch(5.50, 24.96, 303.06°) |
| OKLab | oklab(18.89% 0.0217 -0.0613) |
| OKLCH | oklch(18.89% 0.065 289.5) |
| XYZ | xyz(0.9130, 0.6089, 2.6537) |
| Luminance | 0.0061 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight
#03012D
ΔE00 4.22
Dark Navy Blue
#00022E
ΔE00 4.93
Very Dark Blue
#000133
ΔE00 5.50
Dark Navy
#000435
ΔE00 5.55
Midnight Blue (survey)
#020035
ΔE00 5.64
Navy (survey)
#01153E
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#140C2E #262E0C
analogous
#0C152E #140C2E #250C2E
triadic
#140C2E #2E140C #0C2E14
tetradic
#140C2E #2E0C15 #262E0C #0C2E25
square
#140C2E #2E0C15 #262E0C #0C2E25
split-complementary
#140C2E #2E250C #152E0C
monochromatic
#0B0618 #0B0618 #140C2E #29195F #3E258F
Accessibility & contrast
On white
18.72
#140C2E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.12
#140C2E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #140C2E
18.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##140C2E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##140C2E | 1.00 | 18.72 | 1.12 | 18.72 |
| #FFFFFF | 18.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#0C141B
Achromatopsia (no color)
#121212
Design tokens & code
CSS
--color: #140c2e; /* rgb */ color: rgb(20, 12, 46); /* oklch */ color: oklch(18.9% 0.065 289.5);
Tailwind
colors: {
custom: {
50: '#534c67',
500: '#140c2e',
950: '#000000',
},
}SCSS
$custom: #140c2e; $custom-light: #534c67; $custom-dark: #000000;
JSON
{
"hex": "#140c2e",
"rgb": {
"r": 20,
"g": 12,
"b": 46
},
"hsl": {
"h": 254.118,
"s": 58.621,
"l": 11.373
},
"oklch": {
"l": 0.18893,
"c": 0.06508,
"h": 289.5
},
"luminance": 0.00609
}Semantic roles & 50–950 ramp
primary
#140C2E
secondary
#5B6A2C
accent
#E246BD
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#030106
muted
#78777A