#221888#221888
#221888 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.173 H 274.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).
Color values
| HEX | #221888 |
|---|---|
| RGB | rgb(34, 24, 136) |
| HSL | hsl(245, 70%, 31%) |
| HSV | hsv(245, 82%, 53%) |
| CMYK | cmyk(75%, 82.4%, 0%, 46.7%) |
| CIE-LAB | lab(19.10, 41.26, -59.51) |
| CIE-LCH | lch(19.10, 72.42, 304.74°) |
| OKLab | oklab(32.08% 0.0137 -0.1721) |
| OKLCH | oklch(32.08% 0.173 274.6) |
| XYZ | xyz(5.4288, 2.7704, 23.5364) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.02
Midnight Blue
#191970
ΔE00 4.01
Darkblue
#00008B
ΔE00 4.04
Indigo (survey)
#380282
ΔE00 4.44
Navy
#000080
ΔE00 4.50
Cobalt Blue
#030AA7
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221888 #7E8818
analogous
#184688 #221888 #5A1888
triadic
#221888 #882218 #188822
tetradic
#221888 #881846 #7E8818 #18885A
square
#221888 #881846 #7E8818 #18885A
split-complementary
#221888 #885A18 #468818
monochromatic
#080620 #150F54 #221888 #2F21BC #4C3EDD
Accessibility & contrast
On white
13.51
#221888 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#221888 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221888
13.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221888 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221888 | 1.00 | 13.51 | 1.55 | 13.51 |
| #FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002986
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #221888; /* rgb */ color: rgb(34, 24, 136); /* oklch */ color: oklch(32.1% 0.173 274.6);
Tailwind
colors: {
custom: {
50: '#6f58ac',
500: '#221888',
950: '#000000',
},
}SCSS
$custom: #221888; $custom-light: #6f58ac; $custom-dark: #000000;
JSON
{
"hex": "#221888",
"rgb": {
"r": 34,
"g": 24,
"b": 136
},
"hsl": {
"h": 245.357,
"s": 70,
"l": 31.373
},
"oklch": {
"l": 0.3208,
"c": 0.17265,
"h": 274.6
},
"luminance": 0.02771
}Semantic roles & 50–950 ramp
primary
#221888
secondary
#B1BC40
accent
#ED3BDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F