#221871#221871
#221871 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.144 H 277.9°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).
Color values
| HEX | #221871 |
|---|---|
| RGB | rgb(34, 24, 113) |
| HSL | hsl(247, 65%, 27%) |
| HSV | hsv(247, 79%, 44%) |
| CMYK | cmyk(69.9%, 78.8%, 0%, 55.7%) |
| CIE-LAB | lab(16.43, 33.63, -49.25) |
| CIE-LCH | lch(16.43, 59.64, 304.33°) |
| OKLab | oklab(29.43% 0.0198 -0.1423) |
| OKLCH | oklch(29.43% 0.144 277.9) |
| XYZ | xyz(3.9660, 2.1853, 15.8324) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.23
Dark Royal Blue
#02066F
ΔE00 4.16
Darkblue (survey)
#030764
ΔE00 4.42
Deep Blue
#040273
ΔE00 4.70
Royal
#0C1793
ΔE00 5.32
Navy
#000080
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221871 #677118
analogous
#183A71 #221871 #4F1871
triadic
#221871 #712218 #187122
tetradic
#221871 #71183A #677118 #18714F
square
#221871 #71183A #677118 #18714F
split-complementary
#221871 #714F18 #3A7118
monochromatic
#080519 #130D3F #221871 #3123A3 #4330D3
Accessibility & contrast
On white
14.61
#221871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#221871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221871
14.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221871 | 1.00 | 14.61 | 1.44 | 14.61 |
| #FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #221871; /* rgb */ color: rgb(34, 24, 113); /* oklch */ color: oklch(29.4% 0.144 277.9);
Tailwind
colors: {
custom: {
50: '#6a579b',
500: '#221871',
950: '#000000',
},
}SCSS
$custom: #221871; $custom-light: #6a579b; $custom-dark: #000000;
JSON
{
"hex": "#221871",
"rgb": {
"r": 34,
"g": 24,
"b": 113
},
"hsl": {
"h": 246.742,
"s": 64.964,
"l": 26.863
},
"oklch": {
"l": 0.29426,
"c": 0.14365,
"h": 277.9
},
"luminance": 0.02186
}Semantic roles & 50–950 ramp
primary
#221871
secondary
#9BA63E
accent
#E840D5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E