#21188E#21188E
#21188E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.180 H 273.4°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).
Color values
| HEX | #21188E |
|---|---|
| RGB | rgb(33, 24, 142) |
| HSL | hsl(245, 71%, 33%) |
| HSV | hsv(245, 83%, 56%) |
| CMYK | cmyk(76.8%, 83.1%, 0%, 44.3%) |
| CIE-LAB | lab(19.76, 43.11, -62.18) |
| CIE-LCH | lch(19.76, 75.67, 304.74°) |
| OKLab | oklab(32.73% 0.0107 -0.1799) |
| OKLCH | oklch(32.73% 0.18 273.4) |
| XYZ | xyz(5.8347, 2.9290, 25.8438) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.42
Cobalt Blue
#030AA7
ΔE00 3.81
Darkblue
#00008B
ΔE00 4.00
Royal Blue (survey)
#0504AA
ΔE00 4.34
Indigo (survey)
#380282
ΔE00 4.67
Navy
#000080
ΔE00 4.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21188E #858E18
analogous
#184A8E #21188E #5C188E
triadic
#21188E #8E2118 #188E21
tetradic
#21188E #8E184A #858E18 #188E5C
square
#21188E #8E184A #858E18 #188E5C
split-complementary
#21188E #8E5C18 #4A8E18
monochromatic
#090625 #150F5A #21188E #2D21C2 #4D41DF
Accessibility & contrast
On white
13.24
#21188E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#21188E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21188E
13.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21188E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21188E | 1.00 | 13.24 | 1.59 | 13.24 |
| #FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #21188e; /* rgb */ color: rgb(33, 24, 142); /* oklch */ color: oklch(32.7% 0.180 273.4);
Tailwind
colors: {
custom: {
50: '#7159b0',
500: '#21188e',
950: '#000000',
},
}SCSS
$custom: #21188e; $custom-light: #7159b0; $custom-dark: #000000;
JSON
{
"hex": "#21188e",
"rgb": {
"r": 33,
"g": 24,
"b": 142
},
"hsl": {
"h": 244.576,
"s": 71.084,
"l": 32.549
},
"oklch": {
"l": 0.32729,
"c": 0.18019,
"h": 273.4
},
"luminance": 0.0293
}Semantic roles & 50–950 ramp
primary
#21188E
secondary
#B6C042
accent
#EE3AE0
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980