#221887#221887
#221887 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.171 H 274.7°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #221887 |
|---|---|
| RGB | rgb(34, 24, 135) |
| HSL | hsl(245, 70%, 31%) |
| HSV | hsv(245, 82%, 53%) |
| CMYK | cmyk(74.8%, 82.2%, 0%, 47.1%) |
| CIE-LAB | lab(18.98, 40.94, -59.08) |
| CIE-LCH | lch(18.98, 71.88, 304.72°) |
| OKLab | oklab(31.96% 0.014 -0.1709) |
| OKLCH | oklch(31.96% 0.171 274.7) |
| XYZ | xyz(5.3580, 2.7421, 23.1639) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.13
Midnight Blue
#191970
ΔE00 3.87
Darkblue
#00008B
ΔE00 4.07
Indigo (survey)
#380282
ΔE00 4.43
Navy
#000080
ΔE00 4.47
Cobalt Blue
#030AA7
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221887 #7D8718
analogous
#184587 #221887 #591887
triadic
#221887 #872218 #188722
tetradic
#221887 #871845 #7D8718 #188759
square
#221887 #871845 #7D8718 #188759
split-complementary
#221887 #875918 #458718
monochromatic
#08061F #150F53 #221887 #2F21BB #4B3DDC
Accessibility & contrast
On white
13.56
#221887 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#221887 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221887
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221887 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221887 | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #221887; /* rgb */ color: rgb(34, 24, 135); /* oklch */ color: oklch(32.0% 0.171 274.7);
Tailwind
colors: {
custom: {
50: '#6f58ab',
500: '#221887',
950: '#000000',
},
}SCSS
$custom: #221887; $custom-light: #6f58ab; $custom-dark: #000000;
JSON
{
"hex": "#221887",
"rgb": {
"r": 34,
"g": 24,
"b": 135
},
"hsl": {
"h": 245.405,
"s": 69.811,
"l": 31.176
},
"oklch": {
"l": 0.31961,
"c": 0.17143,
"h": 274.7
},
"luminance": 0.02743
}Semantic roles & 50–950 ramp
primary
#221887
secondary
#B0BB40
accent
#ED3BDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F