#21217F#21217F
#21217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.153 H 273.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #21217F |
|---|---|
| RGB | rgb(33, 33, 127) |
| HSL | hsl(240, 59%, 31%) |
| HSV | hsv(240, 74%, 50%) |
| CMYK | cmyk(74%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(19.81, 32.98, -52.66) |
| CIE-LCH | lch(19.81, 62.13, 302.06°) |
| OKLab | oklab(32.26% 0.01 -0.1523) |
| OKLCH | oklch(32.26% 0.153 273.7) |
| XYZ | xyz(5.0005, 2.9429, 20.3791) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.88
Royal
#0C1793
ΔE00 4.01
Dark Royal Blue
#02066F
ΔE00 6.24
Darkblue
#00008B
ΔE00 6.48
Navy
#000080
ΔE00 6.54
Indigo (survey)
#380282
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21217F #7F7F21
analogous
#21507F #21217F #50217F
triadic
#21217F #7F2121 #217F21
tetradic
#21217F #7F2150 #7F7F21 #217F50
square
#21217F #7F2150 #7F7F21 #217F50
split-complementary
#21217F #7F5021 #507F21
monochromatic
#08081E #14144E #21217F #2E2EB0 #4A4AD0
Accessibility & contrast
On white
13.22
#21217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#21217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21217F
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21217F | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #21217f; /* rgb */ color: rgb(33, 33, 127); /* oklch */ color: oklch(32.3% 0.153 273.7);
Tailwind
colors: {
custom: {
50: '#6c5da5',
500: '#21217f',
950: '#000000',
},
}SCSS
$custom: #21217f; $custom-light: #6c5da5; $custom-dark: #000000;
JSON
{
"hex": "#21217f",
"rgb": {
"r": 33,
"g": 33,
"b": 127
},
"hsl": {
"h": 240,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.32264,
"c": 0.15261,
"h": 273.7
},
"luminance": 0.02943
}Semantic roles & 50–950 ramp
primary
#21217F
secondary
#B2B24A
accent
#E246E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F