#21187E#21187E
#21187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 275.4°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).
Color values
| HEX | #21187E |
|---|---|
| RGB | rgb(33, 24, 126) |
| HSL | hsl(245, 68%, 29%) |
| HSV | hsv(245, 81%, 49%) |
| CMYK | cmyk(73.8%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(17.84, 37.90, -55.28) |
| CIE-LCH | lch(17.84, 67.03, 304.44°) |
| OKLab | oklab(30.84% 0.015 -0.1598) |
| OKLCH | oklch(30.84% 0.161 275.4) |
| XYZ | xyz(4.7185, 2.4825, 19.9651) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.55
Royal
#0C1793
ΔE00 3.27
Dark Royal Blue
#02066F
ΔE00 4.40
Navy
#000080
ΔE00 4.44
Darkblue
#00008B
ΔE00 4.52
Deep Blue
#040273
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21187E #757E18
analogous
#18427E #21187E #54187E
triadic
#21187E #7E2118 #187E21
tetradic
#21187E #7E1842 #757E18 #187E54
square
#21187E #7E1842 #757E18 #187E54
split-complementary
#21187E #7E5418 #427E18
monochromatic
#07051A #140E4B #21187E #2E22B1 #4637D9
Accessibility & contrast
On white
14.03
#21187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#21187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21187E
14.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21187E | 1.00 | 14.03 | 1.50 | 14.03 |
| #FFFFFF | 14.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #21187e; /* rgb */ color: rgb(33, 24, 126); /* oklch */ color: oklch(30.8% 0.161 275.4);
Tailwind
colors: {
custom: {
50: '#6d57a5',
500: '#21187e',
950: '#000000',
},
}SCSS
$custom: #21187e; $custom-light: #6d57a5; $custom-dark: #000000;
JSON
{
"hex": "#21187e",
"rgb": {
"r": 33,
"g": 24,
"b": 126
},
"hsl": {
"h": 245.294,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30835,
"c": 0.16054,
"h": 275.4
},
"luminance": 0.02483
}Semantic roles & 50–950 ramp
primary
#21187E
secondary
#A8B23F
accent
#EB3DDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F