#20178C#20178C
#20178C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.179 H 273.3°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #20178C |
|---|---|
| RGB | rgb(32, 23, 140) |
| HSL | hsl(245, 72%, 32%) |
| HSV | hsv(245, 84%, 55%) |
| CMYK | cmyk(77.1%, 83.6%, 0%, 45.1%) |
| CIE-LAB | lab(19.28, 42.90, -61.73) |
| CIE-LCH | lch(19.28, 75.17, 304.80°) |
| OKLab | oklab(32.31% 0.0103 -0.1786) |
| OKLCH | oklch(32.31% 0.179 273.3) |
| XYZ | xyz(5.6341, 2.8127, 25.0518) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.50
Darkblue
#00008B
ΔE00 3.77
Cobalt Blue
#030AA7
ΔE00 3.96
Navy
#000080
ΔE00 4.44
Royal Blue (survey)
#0504AA
ΔE00 4.48
Indigo (survey)
#380282
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20178C #838C17
analogous
#17498C #20178C #5A178C
triadic
#20178C #8C2017 #178C20
tetradic
#20178C #8C1749 #838C17 #178C5A
square
#20178C #8C1749 #838C17 #178C5A
split-complementary
#20178C #8C5A17 #498C17
monochromatic
#080623 #140E57 #20178C #2C20C1 #4A3EDF
Accessibility & contrast
On white
13.44
#20178C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#20178C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20178C
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20178C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20178C | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #20178c; /* rgb */ color: rgb(32, 23, 140); /* oklch */ color: oklch(32.3% 0.179 273.3);
Tailwind
colors: {
custom: {
50: '#7058af',
500: '#20178c',
950: '#000000',
},
}SCSS
$custom: #20178c; $custom-light: #7058af; $custom-dark: #000000;
JSON
{
"hex": "#20178c",
"rgb": {
"r": 32,
"g": 23,
"b": 140
},
"hsl": {
"h": 244.615,
"s": 71.779,
"l": 31.961
},
"oklch": {
"l": 0.32308,
"c": 0.17886,
"h": 273.3
},
"luminance": 0.02813
}Semantic roles & 50–950 ramp
primary
#20178C
secondary
#B6BF3F
accent
#EF39E1
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880