#20217F#20217F
#20217F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 273.3°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).
Color values
| HEX | #20217F |
|---|---|
| RGB | rgb(32, 33, 127) |
| HSL | hsl(239, 60%, 31%) |
| HSV | hsv(239, 75%, 50%) |
| CMYK | cmyk(74.8%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(19.75, 32.88, -52.77) |
| CIE-LCH | lch(19.75, 62.17, 301.92°) |
| OKLab | oklab(32.2% 0.0087 -0.1526) |
| OKLCH | oklch(32.2% 0.153 273.3) |
| XYZ | xyz(4.9690, 2.9266, 20.3776) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.87
Royal
#0C1793
ΔE00 4.00
Dark Royal Blue
#02066F
ΔE00 6.23
Darkblue
#00008B
ΔE00 6.48
Navy
#000080
ΔE00 6.54
Deep Blue
#040273
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20217F #7F7E20
analogous
#20507F #20217F #4E207F
triadic
#20217F #7F2021 #217F20
tetradic
#20217F #7F2050 #7F7E20 #207F4E
square
#20217F #7F2050 #7F7E20 #207F4E
split-complementary
#20217F #7F4E20 #507F20
monochromatic
#07081D #14144E #20217F #2C2EB0 #484AD1
Accessibility & contrast
On white
13.25
#20217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#20217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20217F
13.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20217F | 1.00 | 13.25 | 1.59 | 13.25 |
| #FFFFFF | 13.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.25 | 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: #20217f; /* rgb */ color: rgb(32, 33, 127); /* oklch */ color: oklch(32.2% 0.153 273.3);
Tailwind
colors: {
custom: {
50: '#6c5da5',
500: '#20217f',
950: '#000000',
},
}SCSS
$custom: #20217f; $custom-light: #6c5da5; $custom-dark: #000000;
JSON
{
"hex": "#20217f",
"rgb": {
"r": 32,
"g": 33,
"b": 127
},
"hsl": {
"h": 239.368,
"s": 59.748,
"l": 31.176
},
"oklch": {
"l": 0.322,
"c": 0.15288,
"h": 273.3
},
"luminance": 0.02927
}Semantic roles & 50–950 ramp
primary
#20217F
secondary
#B2B149
accent
#E145E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F