#221788#221788
#221788 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.173 H 274.7°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #221788 |
|---|---|
| RGB | rgb(34, 23, 136) |
| HSL | hsl(246, 71%, 31%) |
| HSV | hsv(246, 83%, 53%) |
| CMYK | cmyk(75%, 83.1%, 0%, 46.7%) |
| CIE-LAB | lab(18.93, 41.76, -59.80) |
| CIE-LCH | lch(18.93, 72.94, 304.93°) |
| OKLab | oklab(31.96% 0.0141 -0.1729) |
| OKLCH | oklch(31.96% 0.173 274.7) |
| XYZ | xyz(5.4085, 2.7299, 23.5297) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.02
Darkblue
#00008B
ΔE00 3.86
Midnight Blue
#191970
ΔE00 4.07
Indigo (survey)
#380282
ΔE00 4.28
Navy
#000080
ΔE00 4.32
Cobalt Blue
#030AA7
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221788 #7D8817
analogous
#174488 #221788 #5A1788
triadic
#221788 #882217 #178822
tetradic
#221788 #881744 #7D8817 #17885A
square
#221788 #881744 #7D8817 #17885A
split-complementary
#221788 #885A17 #448817
monochromatic
#08051F #150E54 #221788 #2F20BC #4B3BDE
Accessibility & contrast
On white
13.58
#221788 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#221788 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221788
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221788 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221788 | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 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: #221788; /* rgb */ color: rgb(34, 23, 136); /* oklch */ color: oklch(32.0% 0.173 274.7);
Tailwind
colors: {
custom: {
50: '#7058ac',
500: '#221788',
950: '#000000',
},
}SCSS
$custom: #221788; $custom-light: #7058ac; $custom-dark: #000000;
JSON
{
"hex": "#221788",
"rgb": {
"r": 34,
"g": 23,
"b": 136
},
"hsl": {
"h": 245.841,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.3196,
"c": 0.17349,
"h": 274.7
},
"luminance": 0.0273
}Semantic roles & 50–950 ramp
primary
#221788
secondary
#B0BC3F
accent
#EE3ADC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F