#21198B#21198B
#21198B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.176 H 273.6°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #21198B |
|---|---|
| RGB | rgb(33, 25, 139) |
| HSL | hsl(244, 70%, 32%) |
| HSV | hsv(244, 82%, 55%) |
| CMYK | cmyk(76.3%, 82%, 0%, 45.5%) |
| CIE-LAB | lab(19.57, 41.65, -60.62) |
| CIE-LCH | lch(19.57, 73.55, 304.49°) |
| OKLab | oklab(32.49% 0.0112 -0.1754) |
| OKLCH | oklch(32.49% 0.176 273.6) |
| XYZ | xyz(5.6335, 2.8821, 24.6805) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.67
Darkblue
#00008B
ΔE00 4.17
Cobalt Blue
#030AA7
ΔE00 4.28
Midnight Blue
#191970
ΔE00 4.36
Indigo (survey)
#380282
ΔE00 4.73
Navy
#000080
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21198B #838B19
analogous
#194A8B #21198B #5A198B
triadic
#21198B #8B2119 #198B21
tetradic
#21198B #8B194A #838B19 #198B5A
square
#21198B #8B194A #838B19 #198B5A
split-complementary
#21198B #8B5A19 #4A8B19
monochromatic
#080623 #151057 #21198B #2D22BF #4C41DD
Accessibility & contrast
On white
13.32
#21198B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#21198B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21198B
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21198B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21198B | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21198b; /* rgb */ color: rgb(33, 25, 139); /* oklch */ color: oklch(32.5% 0.176 273.6);
Tailwind
colors: {
custom: {
50: '#7059ae',
500: '#21198b',
950: '#000000',
},
}SCSS
$custom: #21198b; $custom-light: #7059ae; $custom-dark: #000000;
JSON
{
"hex": "#21198b",
"rgb": {
"r": 33,
"g": 25,
"b": 139
},
"hsl": {
"h": 244.211,
"s": 69.512,
"l": 32.157
},
"oklch": {
"l": 0.3249,
"c": 0.17573,
"h": 273.6
},
"luminance": 0.02883
}Semantic roles & 50–950 ramp
primary
#21198B
secondary
#B5BE42
accent
#EC3BE0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F