#20177E#20177E
#20177E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.162 H 275.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).
Color values
| HEX | #20177E |
|---|---|
| RGB | rgb(32, 23, 126) |
| HSL | hsl(245, 69%, 29%) |
| HSV | hsv(245, 82%, 49%) |
| CMYK | cmyk(74.6%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(17.58, 38.35, -55.71) |
| CIE-LCH | lch(17.58, 67.63, 304.54°) |
| OKLab | oklab(30.63% 0.014 -0.1611) |
| OKLCH | oklch(30.63% 0.162 275) |
| XYZ | xyz(4.6667, 2.4258, 19.9569) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.60
Royal
#0C1793
ΔE00 3.22
Dark Royal Blue
#02066F
ΔE00 4.20
Navy
#000080
ΔE00 4.21
Darkblue
#00008B
ΔE00 4.31
Deep Blue
#040273
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20177E #757E17
analogous
#17427E #20177E #54177E
triadic
#20177E #7E2017 #177E20
tetradic
#20177E #7E1742 #757E17 #177E54
square
#20177E #7E1742 #757E17 #177E54
split-complementary
#20177E #7E5417 #427E17
monochromatic
#07051A #130E4A #20177E #2D20B2 #4435DA
Accessibility & contrast
On white
14.14
#20177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#20177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20177E
14.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20177E | 1.00 | 14.14 | 1.49 | 14.14 |
| #FFFFFF | 14.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #20177e; /* rgb */ color: rgb(32, 23, 126); /* oklch */ color: oklch(30.6% 0.162 275.0);
Tailwind
colors: {
custom: {
50: '#6c57a5',
500: '#20177e',
950: '#000000',
},
}SCSS
$custom: #20177e; $custom-light: #6c57a5; $custom-dark: #000000;
JSON
{
"hex": "#20177e",
"rgb": {
"r": 32,
"g": 23,
"b": 126
},
"hsl": {
"h": 245.243,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.30634,
"c": 0.16172,
"h": 275
},
"luminance": 0.02426
}Semantic roles & 50–950 ramp
primary
#20177E
secondary
#A8B33E
accent
#EC3CDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F