#20178E#20178E
#20178E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.181 H 273.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).
Color values
| HEX | #20178E |
|---|---|
| RGB | rgb(32, 23, 142) |
| HSL | hsl(245, 72%, 32%) |
| HSV | hsv(245, 84%, 56%) |
| CMYK | cmyk(77.5%, 83.8%, 0%, 44.3%) |
| CIE-LAB | lab(19.52, 43.53, -62.57) |
| CIE-LCH | lch(19.52, 76.22, 304.83°) |
| OKLab | oklab(32.55% 0.0097 -0.181) |
| OKLCH | oklch(32.55% 0.181 273.1) |
| XYZ | xyz(5.7829, 2.8723, 25.8356) |
| Luminance | 0.0287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.35
Cobalt Blue
#030AA7
ΔE00 3.71
Darkblue
#00008B
ΔE00 3.80
Royal Blue (survey)
#0504AA
ΔE00 4.23
Navy
#000080
ΔE00 4.56
Indigo (survey)
#380282
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20178E #858E17
analogous
#17498E #20178E #5C178E
triadic
#20178E #8E2017 #178E20
tetradic
#20178E #8E1749 #858E17 #178E5C
square
#20178E #8E1749 #858E17 #178E5C
split-complementary
#20178E #8E5C17 #498E17
monochromatic
#080625 #140E59 #20178E #2C20C3 #4C3FE0
Accessibility & contrast
On white
13.34
#20178E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#20178E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20178E
13.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20178E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20178E | 1.00 | 13.34 | 1.57 | 13.34 |
| #FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #20178e; /* rgb */ color: rgb(32, 23, 142); /* oklch */ color: oklch(32.6% 0.181 273.1);
Tailwind
colors: {
custom: {
50: '#7058b0',
500: '#20178e',
950: '#000000',
},
}SCSS
$custom: #20178e; $custom-light: #7058b0; $custom-dark: #000000;
JSON
{
"hex": "#20178e",
"rgb": {
"r": 32,
"g": 23,
"b": 142
},
"hsl": {
"h": 244.538,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.3255,
"c": 0.18125,
"h": 273.1
},
"luminance": 0.02873
}Semantic roles & 50–950 ramp
primary
#20178E
secondary
#B7C040
accent
#EF39E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880