#21217C#21217C
#21217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.149 H 274.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #21217C |
|---|---|
| RGB | rgb(33, 33, 124) |
| HSL | hsl(240, 58%, 31%) |
| HSV | hsv(240, 73%, 49%) |
| CMYK | cmyk(73.4%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.50, 31.91, -51.27) |
| CIE-LCH | lch(19.50, 60.39, 301.90°) |
| OKLab | oklab(31.94% 0.0105 -0.1482) |
| OKLCH | oklch(31.94% 0.149 274) |
| XYZ | xyz(4.8079, 2.8658, 19.3647) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.57
Royal
#0C1793
ΔE00 4.43
Dark Royal Blue
#02066F
ΔE00 6.18
Deep Blue
#040273
ΔE00 6.63
Navy
#000080
ΔE00 6.68
Darkblue (survey)
#030764
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21217C #7C7C21
analogous
#214E7C #21217C #4E217C
triadic
#21217C #7C2121 #217C21
tetradic
#21217C #7C214E #7C7C21 #217C4E
square
#21217C #7C214E #7C7C21 #217C4E
split-complementary
#21217C #7C4E21 #4E7C21
monochromatic
#07071B #14144C #21217C #2E2EAC #4949CF
Accessibility & contrast
On white
13.35
#21217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#21217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21217C
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21217C | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002B7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21217c; /* rgb */ color: rgb(33, 33, 124); /* oklch */ color: oklch(31.9% 0.149 274.0);
Tailwind
colors: {
custom: {
50: '#6b5da3',
500: '#21217c',
950: '#000000',
},
}SCSS
$custom: #21217c; $custom-light: #6b5da3; $custom-dark: #000000;
JSON
{
"hex": "#21217c",
"rgb": {
"r": 33,
"g": 33,
"b": 124
},
"hsl": {
"h": 240,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.31944,
"c": 0.1486,
"h": 274
},
"luminance": 0.02866
}Semantic roles & 50–950 ramp
primary
#21217C
secondary
#AFAF4A
accent
#E147E1
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F