#180C4F#180C4F
#180C4F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.113 H 280.8°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).
Color values
| HEX | #180C4F |
|---|---|
| RGB | rgb(24, 12, 79) |
| HSL | hsl(251, 74%, 18%) |
| HSV | hsv(251, 85%, 31%) |
| CMYK | cmyk(69.6%, 84.8%, 0%, 69%) |
| CIE-LAB | lab(9.17, 27.66, -38.56) |
| CIE-LCH | lch(9.17, 47.45, 305.65°) |
| OKLab | oklab(22.93% 0.0213 -0.1113) |
| OKLCH | oklch(22.93% 0.113 280.8) |
| XYZ | xyz(1.9190, 1.0215, 7.4917) |
| Luminance | 0.0102 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 1.77
Night Blue
#040348
ΔE00 2.78
Dark Blue
#00035B
ΔE00 4.13
Darkblue (survey)
#030764
ΔE00 4.69
Navy Blue (survey)
#001146
ΔE00 4.83
Midnight Blue
#191970
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#180C4F #434F0C
analogous
#0C224F #180C4F #390C4F
triadic
#180C4F #4F180C #0C4F18
tetradic
#180C4F #4F0C22 #434F0C #0C4F39
square
#180C4F #4F0C22 #434F0C #0C4F39
split-complementary
#180C4F #4F390C #224F0C
monochromatic
#08041B #08041B #180C4F #281484 #381CB9
Accessibility & contrast
On white
17.44
#180C4F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.20
#180C4F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #180C4F
17.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##180C4F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##180C4F | 1.00 | 17.44 | 1.20 | 17.44 |
| #FFFFFF | 17.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1A1A1A
Design tokens & code
CSS
--color: #180c4f; /* rgb */ color: rgb(24, 12, 79); /* oklch */ color: oklch(22.9% 0.113 280.8);
Tailwind
colors: {
custom: {
50: '#5e4d81',
500: '#180c4f',
950: '#000000',
},
}SCSS
$custom: #180c4f; $custom-light: #5e4d81; $custom-dark: #000000;
JSON
{
"hex": "#180c4f",
"rgb": {
"r": 24,
"g": 12,
"b": 79
},
"hsl": {
"h": 250.746,
"s": 73.626,
"l": 17.843
},
"oklch": {
"l": 0.22928,
"c": 0.11329,
"h": 280.8
},
"luminance": 0.01022
}Semantic roles & 50–950 ramp
primary
#180C4F
secondary
#7A8B2C
accent
#F038CF
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C