#20177F#20177F
#20177F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.163 H 274.8°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).
Color values
| HEX | #20177F |
|---|---|
| RGB | rgb(32, 23, 127) |
| HSL | hsl(245, 69%, 29%) |
| HSV | hsv(245, 82%, 50%) |
| CMYK | cmyk(74.8%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(17.70, 38.68, -56.15) |
| CIE-LCH | lch(17.70, 68.18, 304.56°) |
| OKLab | oklab(30.75% 0.0138 -0.1624) |
| OKLCH | oklch(30.75% 0.163 274.8) |
| XYZ | xyz(4.7316, 2.4517, 20.2984) |
| Luminance | 0.0245 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Royal
#0C1793
ΔE00 3.08
Navy
#000080
ΔE00 4.19
Darkblue
#00008B
ΔE00 4.23
Dark Royal Blue
#02066F
ΔE00 4.27
Deep Blue
#040273
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20177F #767F17
analogous
#17427F #20177F #54177F
triadic
#20177F #7F2017 #177F20
tetradic
#20177F #7F1742 #767F17 #177F54
square
#20177F #7F1742 #767F17 #177F54
split-complementary
#20177F #7F5417 #427F17
monochromatic
#07051A #130E4B #20177F #2D20B3 #4436DB
Accessibility & contrast
On white
14.09
#20177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#20177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20177F
14.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20177F | 1.00 | 14.09 | 1.49 | 14.09 |
| #FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #20177f; /* rgb */ color: rgb(32, 23, 127); /* oklch */ color: oklch(30.8% 0.163 274.8);
Tailwind
colors: {
custom: {
50: '#6d57a5',
500: '#20177f',
950: '#000000',
},
}SCSS
$custom: #20177f; $custom-light: #6d57a5; $custom-dark: #000000;
JSON
{
"hex": "#20177f",
"rgb": {
"r": 32,
"g": 23,
"b": 127
},
"hsl": {
"h": 245.192,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.30752,
"c": 0.16296,
"h": 274.8
},
"luminance": 0.02452
}Semantic roles & 50–950 ramp
primary
#20177F
secondary
#A9B43E
accent
#EC3CDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F