#21207F#21207F
#21207F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.154 H 273.9°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).
Color values
| HEX | #21207F |
|---|---|
| RGB | rgb(33, 32, 127) |
| HSL | hsl(241, 60%, 31%) |
| HSV | hsv(241, 75%, 50%) |
| CMYK | cmyk(74%, 74.8%, 0%, 50.2%) |
| CIE-LAB | lab(19.59, 33.60, -53.02) |
| CIE-LCH | lch(19.59, 62.78, 302.37°) |
| OKLab | oklab(32.1% 0.0106 -0.1533) |
| OKLCH | oklch(32.1% 0.154 273.9) |
| XYZ | xyz(4.9732, 2.8882, 20.3699) |
| Luminance | 0.0289 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Royal
#0C1793
ΔE00 3.84
Dark Royal Blue
#02066F
ΔE00 6.00
Darkblue
#00008B
ΔE00 6.22
Navy
#000080
ΔE00 6.28
Indigo (survey)
#380282
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21207F #7E7F20
analogous
#204E7F #21207F #50207F
triadic
#21207F #7F2120 #207F21
tetradic
#21207F #7F204E #7E7F20 #207F50
square
#21207F #7F204E #7E7F20 #207F50
split-complementary
#21207F #7F5020 #4E7F20
monochromatic
#08071D #14144E #21207F #2E2CB0 #4A48D1
Accessibility & contrast
On white
13.31
#21207F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#21207F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21207F
13.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21207F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21207F | 1.00 | 13.31 | 1.58 | 13.31 |
| #FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21207f; /* rgb */ color: rgb(33, 32, 127); /* oklch */ color: oklch(32.1% 0.154 273.9);
Tailwind
colors: {
custom: {
50: '#6c5ca5',
500: '#21207f',
950: '#000000',
},
}SCSS
$custom: #21207f; $custom-light: #6c5ca5; $custom-dark: #000000;
JSON
{
"hex": "#21207f",
"rgb": {
"r": 33,
"g": 32,
"b": 127
},
"hsl": {
"h": 240.632,
"s": 59.748,
"l": 31.176
},
"oklch": {
"l": 0.32105,
"c": 0.15371,
"h": 273.9
},
"luminance": 0.02889
}Semantic roles & 50–950 ramp
primary
#21207F
secondary
#B1B249
accent
#E345E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F