#21187A#21187A
#21187A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.155 H 275.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).
Color values
| HEX | #21187A |
|---|---|
| RGB | rgb(33, 24, 122) |
| HSL | hsl(246, 67%, 29%) |
| HSV | hsv(246, 80%, 48%) |
| CMYK | cmyk(73%, 80.3%, 0%, 52.2%) |
| CIE-LAB | lab(17.37, 36.57, -53.50) |
| CIE-LCH | lch(17.37, 64.80, 304.35°) |
| OKLab | oklab(30.37% 0.016 -0.1547) |
| OKLCH | oklch(30.37% 0.155 275.9) |
| XYZ | xyz(4.4655, 2.3813, 18.6329) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.00
Royal
#0C1793
ΔE00 3.86
Dark Royal Blue
#02066F
ΔE00 4.19
Deep Blue
#040273
ΔE00 4.50
Navy
#000080
ΔE00 4.61
Indigo (survey)
#380282
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21187A #717A18
analogous
#18407A #21187A #52187A
triadic
#21187A #7A2118 #187A21
tetradic
#21187A #7A1840 #717A18 #187A52
square
#21187A #7A1840 #717A18 #187A52
split-complementary
#21187A #7A5218 #407A18
monochromatic
#07051A #130E47 #21187A #2F22AD #4435D7
Accessibility & contrast
On white
14.22
#21187A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#21187A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21187A
14.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21187A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21187A | 1.00 | 14.22 | 1.48 | 14.22 |
| #FFFFFF | 14.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21187a; /* rgb */ color: rgb(33, 24, 122); /* oklch */ color: oklch(30.4% 0.155 275.9);
Tailwind
colors: {
custom: {
50: '#6c57a2',
500: '#21187a',
950: '#000000',
},
}SCSS
$custom: #21187a; $custom-light: #6c57a2; $custom-dark: #000000;
JSON
{
"hex": "#21187a",
"rgb": {
"r": 33,
"g": 24,
"b": 122
},
"hsl": {
"h": 245.51,
"s": 67.123,
"l": 28.627
},
"oklch": {
"l": 0.30371,
"c": 0.15549,
"h": 275.9
},
"luminance": 0.02382
}Semantic roles & 50–950 ramp
primary
#21187A
secondary
#A5AF3F
accent
#EA3EDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F