#20217E#20217E
#20217E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.1% C 0.152 H 273.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).
Color values
| HEX | #20217E |
|---|---|
| RGB | rgb(32, 33, 126) |
| HSL | hsl(239, 59%, 31%) |
| HSV | hsv(239, 75%, 49%) |
| CMYK | cmyk(74.6%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(19.64, 32.51, -52.31) |
| CIE-LCH | lch(19.64, 61.59, 301.87°) |
| OKLab | oklab(32.09% 0.0089 -0.1513) |
| OKLCH | oklch(32.09% 0.152 273.4) |
| XYZ | xyz(4.9042, 2.9007, 20.0360) |
| Luminance | 0.0290 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Royal
#0C1793
ΔE00 4.13
Dark Royal Blue
#02066F
ΔE00 6.20
Darkblue
#00008B
ΔE00 6.55
Navy
#000080
ΔE00 6.58
Deep Blue
#040273
ΔE00 6.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20217E #7E7D20
analogous
#20507E #20217E #4E207E
triadic
#20217E #7E2021 #217E20
tetradic
#20217E #7E2050 #7E7D20 #207E4E
square
#20217E #7E2050 #7E7D20 #207E4E
split-complementary
#20217E #7E4E20 #507E20
monochromatic
#07071C #14144D #20217E #2C2EAF #4849D0
Accessibility & contrast
On white
13.29
#20217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#20217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20217E
13.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20217E | 1.00 | 13.29 | 1.58 | 13.29 |
| #FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #20217e; /* rgb */ color: rgb(32, 33, 126); /* oklch */ color: oklch(32.1% 0.152 273.4);
Tailwind
colors: {
custom: {
50: '#6b5da4',
500: '#20217e',
950: '#000000',
},
}SCSS
$custom: #20217e; $custom-light: #6b5da4; $custom-dark: #000000;
JSON
{
"hex": "#20217e",
"rgb": {
"r": 32,
"g": 33,
"b": 126
},
"hsl": {
"h": 239.362,
"s": 59.494,
"l": 30.98
},
"oklch": {
"l": 0.32092,
"c": 0.15155,
"h": 273.4
},
"luminance": 0.02901
}Semantic roles & 50–950 ramp
primary
#20217E
secondary
#B1B049
accent
#E145E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F