#181872#181872
#181872 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.148 H 272.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).
Color values
| HEX | #181872 |
|---|---|
| RGB | rgb(24, 24, 114) |
| HSL | hsl(240, 65%, 27%) |
| HSV | hsv(240, 79%, 45%) |
| CMYK | cmyk(78.9%, 78.9%, 0%, 55.3%) |
| CIE-LAB | lab(15.81, 32.95, -50.95) |
| CIE-LCH | lch(15.81, 60.68, 302.89°) |
| OKLab | oklab(28.83% 0.0057 -0.1475) |
| OKLCH | oklch(28.83% 0.148 272.2) |
| XYZ | xyz(3.7396, 2.0620, 16.1172) |
| Luminance | 0.0206 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.48
Dark Royal Blue
#02066F
ΔE00 3.84
Darkblue (survey)
#030764
ΔE00 4.14
Deep Blue
#040273
ΔE00 4.48
Royal
#0C1793
ΔE00 4.98
Navy
#000080
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181872 #727218
analogous
#184572 #181872 #451872
triadic
#181872 #721818 #187218
tetradic
#181872 #721845 #727218 #187245
square
#181872 #721845 #727218 #187245
split-complementary
#181872 #724518 #457218
monochromatic
#050519 #0D0D3F #181872 #2323A5 #3131D4
Accessibility & contrast
On white
14.87
#181872 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#181872 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181872
14.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181872 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181872 | 1.00 | 14.87 | 1.41 | 14.87 |
| #FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #181872; /* rgb */ color: rgb(24, 24, 114); /* oklch */ color: oklch(28.8% 0.148 272.2);
Tailwind
colors: {
custom: {
50: '#66569c',
500: '#181872',
950: '#000000',
},
}SCSS
$custom: #181872; $custom-light: #66569c; $custom-dark: #000000;
JSON
{
"hex": "#181872",
"rgb": {
"r": 24,
"g": 24,
"b": 114
},
"hsl": {
"h": 240,
"s": 65.217,
"l": 27.059
},
"oklch": {
"l": 0.28829,
"c": 0.14759,
"h": 272.2
},
"luminance": 0.02062
}Semantic roles & 50–950 ramp
primary
#181872
secondary
#A7A73E
accent
#E840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E