#20217C#20217C
#20217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.149 H 273.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #20217C |
|---|---|
| RGB | rgb(32, 33, 124) |
| HSL | hsl(239, 59%, 31%) |
| HSV | hsv(239, 74%, 49%) |
| CMYK | cmyk(74.2%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(19.43, 31.79, -51.38) |
| CIE-LCH | lch(19.43, 60.42, 301.75°) |
| OKLab | oklab(31.88% 0.0092 -0.1486) |
| OKLCH | oklch(31.88% 0.149 273.5) |
| XYZ | xyz(4.7764, 2.8496, 19.3632) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.56
Royal
#0C1793
ΔE00 4.42
Dark Royal Blue
#02066F
ΔE00 6.17
Deep Blue
#040273
ΔE00 6.63
Navy
#000080
ΔE00 6.68
Darkblue (survey)
#030764
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20217C #7C7B20
analogous
#204F7C #20217C #4D207C
triadic
#20217C #7C2021 #217C20
tetradic
#20217C #7C204F #7C7B20 #207C4D
square
#20217C #7C204F #7C7B20 #207C4D
split-complementary
#20217C #7C4D20 #4F7C20
monochromatic
#07071B #13144B #20217C #2D2EAD #4748CF
Accessibility & contrast
On white
13.38
#20217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#20217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20217C
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20217C | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 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: #20217c; /* rgb */ color: rgb(32, 33, 124); /* oklch */ color: oklch(31.9% 0.149 273.5);
Tailwind
colors: {
custom: {
50: '#6b5da3',
500: '#20217c',
950: '#000000',
},
}SCSS
$custom: #20217c; $custom-light: #6b5da3; $custom-dark: #000000;
JSON
{
"hex": "#20217c",
"rgb": {
"r": 32,
"g": 33,
"b": 124
},
"hsl": {
"h": 239.348,
"s": 58.974,
"l": 30.588
},
"oklch": {
"l": 0.31878,
"c": 0.14888,
"h": 273.5
},
"luminance": 0.0285
}Semantic roles & 50–950 ramp
primary
#20217C
secondary
#AFAE49
accent
#E046E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F