#181871#181871
#181871 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.146 H 272.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).
Color values
| HEX | #181871 |
|---|---|
| RGB | rgb(24, 24, 113) |
| HSL | hsl(240, 65%, 27%) |
| HSV | hsv(240, 79%, 44%) |
| CMYK | cmyk(78.8%, 78.8%, 0%, 55.7%) |
| CIE-LAB | lab(15.69, 32.59, -50.50) |
| CIE-LCH | lch(15.69, 60.10, 302.84°) |
| OKLab | oklab(28.71% 0.0059 -0.1462) |
| OKLCH | oklch(28.71% 0.146 272.3) |
| XYZ | xyz(3.6830, 2.0393, 15.8191) |
| Luminance | 0.0204 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.35
Dark Royal Blue
#02066F
ΔE00 3.86
Darkblue (survey)
#030764
ΔE00 4.09
Deep Blue
#040273
ΔE00 4.53
Royal
#0C1793
ΔE00 5.14
Navy
#000080
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#181871 #717118
analogous
#184571 #181871 #451871
triadic
#181871 #711818 #187118
tetradic
#181871 #711845 #717118 #187145
square
#181871 #711845 #717118 #187145
split-complementary
#181871 #714518 #457118
monochromatic
#050519 #0D0D3F #181871 #2323A3 #3030D3
Accessibility & contrast
On white
14.91
#181871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#181871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #181871
14.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##181871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##181871 | 1.00 | 14.91 | 1.41 | 14.91 |
| #FFFFFF | 14.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #181871; /* rgb */ color: rgb(24, 24, 113); /* oklch */ color: oklch(28.7% 0.146 272.3);
Tailwind
colors: {
custom: {
50: '#66569b',
500: '#181871',
950: '#000000',
},
}SCSS
$custom: #181871; $custom-light: #66569b; $custom-dark: #000000;
JSON
{
"hex": "#181871",
"rgb": {
"r": 24,
"g": 24,
"b": 113
},
"hsl": {
"h": 240,
"s": 64.964,
"l": 26.863
},
"oklch": {
"l": 0.28712,
"c": 0.14628,
"h": 272.3
},
"luminance": 0.0204
}Semantic roles & 50–950 ramp
primary
#181871
secondary
#A6A63E
accent
#E840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E