#181971#181971
#181971 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.9% C 0.145 H 272.2°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).
Color values
| HEX | #181971 |
|---|---|
| RGB | rgb(24, 25, 113) |
| HSL | hsl(239, 65%, 27%) |
| HSV | hsv(239, 79%, 44%) |
| CMYK | cmyk(78.8%, 77.9%, 0%, 55.7%) |
| CIE-LAB | lab(15.91, 31.98, -50.14) |
| CIE-LCH | lch(15.91, 59.47, 302.53°) |
| OKLab | oklab(28.87% 0.0055 -0.1451) |
| OKLCH | oklch(28.87% 0.145 272.2) |
| XYZ | xyz(3.7040, 2.0813, 15.8261) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.20
Dark Royal Blue
#02066F
ΔE00 4.11
Darkblue (survey)
#030764
ΔE00 4.31
Deep Blue
#040273
ΔE00 4.79
Royal
#0C1793
ΔE00 5.20
Navy
#000080
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181971 #717018
analogous
#184671 #181971 #441871
triadic
#181971 #711819 #197118
tetradic
#181971 #711846 #717018 #187144
square
#181971 #711846 #717018 #187144
split-complementary
#181971 #714418 #467118
monochromatic
#050619 #0D0E3F #181971 #2324A3 #3032D3
Accessibility & contrast
On white
14.83
#181971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#181971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181971
14.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181971 | 1.00 | 14.83 | 1.42 | 14.83 |
| #FFFFFF | 14.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003343
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #181971; /* rgb */ color: rgb(24, 25, 113); /* oklch */ color: oklch(28.9% 0.145 272.2);
Tailwind
colors: {
custom: {
50: '#66579b',
500: '#181971',
950: '#000000',
},
}SCSS
$custom: #181971; $custom-light: #66579b; $custom-dark: #000000;
JSON
{
"hex": "#181971",
"rgb": {
"r": 24,
"g": 25,
"b": 113
},
"hsl": {
"h": 239.326,
"s": 64.964,
"l": 26.863
},
"oklch": {
"l": 0.28865,
"c": 0.14523,
"h": 272.2
},
"luminance": 0.02082
}Semantic roles & 50–950 ramp
primary
#181971
secondary
#A6A53E
accent
#E640E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E