#20217A#20217A
#20217A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.146 H 273.7°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).
Color values
| HEX | #20217A |
|---|---|
| RGB | rgb(32, 33, 122) |
| HSL | hsl(239, 58%, 30%) |
| HSV | hsv(239, 74%, 48%) |
| CMYK | cmyk(73.8%, 73%, 0%, 52.2%) |
| CIE-LAB | lab(19.22, 31.06, -50.45) |
| CIE-LCH | lch(19.22, 59.25, 301.62°) |
| OKLab | oklab(31.67% 0.0095 -0.1459) |
| OKLCH | oklch(31.67% 0.146 273.7) |
| XYZ | xyz(4.6512, 2.7995, 18.7038) |
| Luminance | 0.0280 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.39
Royal
#0C1793
ΔE00 4.71
Dark Royal Blue
#02066F
ΔE00 6.15
Darkblue (survey)
#030764
ΔE00 6.60
Deep Blue
#040273
ΔE00 6.65
Navy
#000080
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20217A #7A7920
analogous
#204E7A #20217A #4C207A
triadic
#20217A #7A2021 #217A20
tetradic
#20217A #7A204E #7A7920 #207A4C
square
#20217A #7A204E #7A7920 #207A4C
split-complementary
#20217A #7A4C20 #4E7A20
monochromatic
#070719 #13144A #20217A #2D2EAA #4647CE
Accessibility & contrast
On white
13.46
#20217A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#20217A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20217A
13.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20217A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20217A | 1.00 | 13.46 | 1.56 | 13.46 |
| #FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #20217a; /* rgb */ color: rgb(32, 33, 122); /* oklch */ color: oklch(31.7% 0.146 273.7);
Tailwind
colors: {
custom: {
50: '#6a5da1',
500: '#20217a',
950: '#000000',
},
}SCSS
$custom: #20217a; $custom-light: #6a5da1; $custom-dark: #000000;
JSON
{
"hex": "#20217a",
"rgb": {
"r": 32,
"g": 33,
"b": 122
},
"hsl": {
"h": 239.333,
"s": 58.442,
"l": 30.196
},
"oklch": {
"l": 0.31665,
"c": 0.14618,
"h": 273.7
},
"luminance": 0.028
}Semantic roles & 50–950 ramp
primary
#20217A
secondary
#ADAC49
accent
#E046E2
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F