#21188B#21188B
#21188B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.177 H 273.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).
Color values
| HEX | #21188B |
|---|---|
| RGB | rgb(33, 24, 139) |
| HSL | hsl(245, 71%, 32%) |
| HSV | hsv(245, 83%, 55%) |
| CMYK | cmyk(76.3%, 82.7%, 0%, 45.5%) |
| CIE-LAB | lab(19.39, 42.15, -60.91) |
| CIE-LCH | lch(19.39, 74.08, 304.68°) |
| OKLab | oklab(32.37% 0.0115 -0.1762) |
| OKLCH | oklch(32.37% 0.177 273.7) |
| XYZ | xyz(5.6125, 2.8401, 24.6735) |
| Luminance | 0.0284 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.65
Darkblue
#00008B
ΔE00 3.98
Cobalt Blue
#030AA7
ΔE00 4.19
Midnight Blue
#191970
ΔE00 4.40
Indigo (survey)
#380282
ΔE00 4.57
Navy
#000080
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21188B #828B18
analogous
#18488B #21188B #5B188B
triadic
#21188B #8B2118 #188B21
tetradic
#21188B #8B1848 #828B18 #188B5B
square
#21188B #8B1848 #828B18 #188B5B
split-complementary
#21188B #8B5B18 #488B18
monochromatic
#080623 #150F57 #21188B #2D21BF #4C3FDE
Accessibility & contrast
On white
13.39
#21188B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#21188B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21188B
13.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21188B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21188B | 1.00 | 13.39 | 1.57 | 13.39 |
| #FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21188b; /* rgb */ color: rgb(33, 24, 139); /* oklch */ color: oklch(32.4% 0.177 273.7);
Tailwind
colors: {
custom: {
50: '#7058ae',
500: '#21188b',
950: '#000000',
},
}SCSS
$custom: #21188b; $custom-light: #7058ae; $custom-dark: #000000;
JSON
{
"hex": "#21188b",
"rgb": {
"r": 33,
"g": 24,
"b": 139
},
"hsl": {
"h": 244.696,
"s": 70.552,
"l": 31.961
},
"oklch": {
"l": 0.32369,
"c": 0.17657,
"h": 273.7
},
"luminance": 0.02841
}Semantic roles & 50–950 ramp
primary
#21188B
secondary
#B4BE40
accent
#ED3ADF
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F