#21217A#21217A
#21217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.146 H 274.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).
Color values
| HEX | #21217A |
|---|---|
| RGB | rgb(33, 33, 122) |
| HSL | hsl(240, 57%, 30%) |
| HSV | hsv(240, 73%, 48%) |
| CMYK | cmyk(73%, 73%, 0%, 52.2%) |
| CIE-LAB | lab(19.29, 31.18, -50.34) |
| CIE-LCH | lch(19.29, 59.21, 301.78°) |
| OKLab | oklab(31.73% 0.0108 -0.1455) |
| OKLCH | oklch(31.73% 0.146 274.2) |
| XYZ | xyz(4.6827, 2.8157, 18.7053) |
| Luminance | 0.0282 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.40
Royal
#0C1793
ΔE00 4.72
Dark Royal Blue
#02066F
ΔE00 6.16
Darkblue (survey)
#030764
ΔE00 6.61
Deep Blue
#040273
ΔE00 6.65
Navy
#000080
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21217A #7A7A21
analogous
#214D7A #21217A #4D217A
triadic
#21217A #7A2121 #217A21
tetradic
#21217A #7A214D #7A7A21 #217A4D
square
#21217A #7A214D #7A7A21 #217A4D
split-complementary
#21217A #7A4D21 #4D7A21
monochromatic
#07071A #14144A #21217A #2E2EAA #4848CD
Accessibility & contrast
On white
13.43
#21217A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#21217A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21217A
13.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21217A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21217A | 1.00 | 13.43 | 1.56 | 13.43 |
| #FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21217a; /* rgb */ color: rgb(33, 33, 122); /* oklch */ color: oklch(31.7% 0.146 274.2);
Tailwind
colors: {
custom: {
50: '#6b5da1',
500: '#21217a',
950: '#000000',
},
}SCSS
$custom: #21217a; $custom-light: #6b5da1; $custom-dark: #000000;
JSON
{
"hex": "#21217a",
"rgb": {
"r": 33,
"g": 33,
"b": 122
},
"hsl": {
"h": 240,
"s": 57.419,
"l": 30.392
},
"oklch": {
"l": 0.31732,
"c": 0.14591,
"h": 274.2
},
"luminance": 0.02816
}Semantic roles & 50–950 ramp
primary
#21217A
secondary
#ADAD4A
accent
#E147E1
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F