#21217E#21217E
#21217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.151 H 273.8°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).
Color values
| HEX | #21217E |
|---|---|
| RGB | rgb(33, 33, 126) |
| HSL | hsl(240, 58%, 31%) |
| HSV | hsv(240, 74%, 49%) |
| CMYK | cmyk(73.8%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(19.71, 32.63, -52.19) |
| CIE-LCH | lch(19.71, 61.55, 302.01°) |
| OKLab | oklab(32.16% 0.0102 -0.1509) |
| OKLCH | oklch(32.16% 0.151 273.8) |
| XYZ | xyz(4.9357, 2.9169, 20.0375) |
| Luminance | 0.0292 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.77
Royal
#0C1793
ΔE00 4.14
Dark Royal Blue
#02066F
ΔE00 6.21
Darkblue
#00008B
ΔE00 6.55
Navy
#000080
ΔE00 6.58
Deep Blue
#040273
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21217E #7E7E21
analogous
#214F7E #21217E #4F217E
triadic
#21217E #7E2121 #217E21
tetradic
#21217E #7E214F #7E7E21 #217E4F
square
#21217E #7E214F #7E7E21 #217E4F
split-complementary
#21217E #7E4F21 #4F7E21
monochromatic
#08081D #14144E #21217E #2E2EAE #4A4AD0
Accessibility & contrast
On white
13.26
#21217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#21217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21217E
13.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21217E | 1.00 | 13.26 | 1.58 | 13.26 |
| #FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #21217e; /* rgb */ color: rgb(33, 33, 126); /* oklch */ color: oklch(32.2% 0.151 273.8);
Tailwind
colors: {
custom: {
50: '#6c5da4',
500: '#21217e',
950: '#000000',
},
}SCSS
$custom: #21217e; $custom-light: #6c5da4; $custom-dark: #000000;
JSON
{
"hex": "#21217e",
"rgb": {
"r": 33,
"g": 33,
"b": 126
},
"hsl": {
"h": 240,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.32157,
"c": 0.15128,
"h": 273.8
},
"luminance": 0.02917
}Semantic roles & 50–950 ramp
primary
#21217E
secondary
#B1B14A
accent
#E246E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F