#151871#151871
#151871 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.147 H 270.9°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).
Color values
| HEX | #151871 |
|---|---|
| RGB | rgb(21, 24, 113) |
| HSL | hsl(238, 69%, 26%) |
| HSV | hsv(238, 81%, 44%) |
| CMYK | cmyk(81.4%, 78.8%, 0%, 55.7%) |
| CIE-LAB | lab(15.51, 32.33, -50.80) |
| CIE-LCH | lch(15.51, 60.22, 302.47°) |
| OKLab | oklab(28.54% 0.0023 -0.1471) |
| OKLCH | oklch(28.54% 0.147 270.9) |
| XYZ | xyz(3.6155, 2.0045, 15.8159) |
| Luminance | 0.0200 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.47
Dark Royal Blue
#02066F
ΔE00 3.84
Darkblue (survey)
#030764
ΔE00 4.06
Deep Blue
#040273
ΔE00 4.54
Royal
#0C1793
ΔE00 5.14
Navy
#000080
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#151871 #716E15
analogous
#154671 #151871 #401571
triadic
#151871 #711518 #187115
tetradic
#151871 #711546 #716E15 #157140
square
#151871 #711546 #716E15 #157140
split-complementary
#151871 #714015 #467115
monochromatic
#05051A #0B0D3D #151871 #1F23A5 #292FD7
Accessibility & contrast
On white
14.99
#151871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#151871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #151871
14.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##151871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##151871 | 1.00 | 14.99 | 1.40 | 14.99 |
| #FFFFFF | 14.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #151871; /* rgb */ color: rgb(21, 24, 113); /* oklch */ color: oklch(28.5% 0.147 270.9);
Tailwind
colors: {
custom: {
50: '#65569b',
500: '#151871',
950: '#000000',
},
}SCSS
$custom: #151871; $custom-light: #65569b; $custom-dark: #000000;
JSON
{
"hex": "#151871",
"rgb": {
"r": 21,
"g": 24,
"b": 113
},
"hsl": {
"h": 238.043,
"s": 68.657,
"l": 26.275
},
"oklch": {
"l": 0.28535,
"c": 0.14714,
"h": 270.9
},
"luminance": 0.02005
}Semantic roles & 50–950 ramp
primary
#151871
secondary
#A7A43B
accent
#E63CEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E