#20187E#20187E
#20187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 274.8°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).
Color values
| HEX | #20187E |
|---|---|
| RGB | rgb(32, 24, 126) |
| HSL | hsl(245, 68%, 29%) |
| HSV | hsv(245, 81%, 49%) |
| CMYK | cmyk(74.6%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(17.77, 37.81, -55.40) |
| CIE-LCH | lch(17.77, 67.08, 304.31°) |
| OKLab | oklab(30.76% 0.0136 -0.1602) |
| OKLCH | oklch(30.76% 0.161 274.8) |
| XYZ | xyz(4.6869, 2.4662, 19.9636) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.51
Royal
#0C1793
ΔE00 3.23
Dark Royal Blue
#02066F
ΔE00 4.36
Navy
#000080
ΔE00 4.42
Darkblue
#00008B
ΔE00 4.49
Deep Blue
#040273
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20187E #767E18
analogous
#18437E #20187E #53187E
triadic
#20187E #7E2018 #187E20
tetradic
#20187E #7E1843 #767E18 #187E53
square
#20187E #7E1843 #767E18 #187E53
split-complementary
#20187E #7E5318 #437E18
monochromatic
#07051A #130E4B #20187E #2D22B1 #4437D9
Accessibility & contrast
On white
14.06
#20187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#20187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20187E
14.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20187E | 1.00 | 14.06 | 1.49 | 14.06 |
| #FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #20187e; /* rgb */ color: rgb(32, 24, 126); /* oklch */ color: oklch(30.8% 0.161 274.8);
Tailwind
colors: {
custom: {
50: '#6c57a5',
500: '#20187e',
950: '#000000',
},
}SCSS
$custom: #20187e; $custom-light: #6c57a5; $custom-dark: #000000;
JSON
{
"hex": "#20187e",
"rgb": {
"r": 32,
"g": 24,
"b": 126
},
"hsl": {
"h": 244.706,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.30764,
"c": 0.1608,
"h": 274.8
},
"luminance": 0.02467
}Semantic roles & 50–950 ramp
primary
#20187E
secondary
#A9B23F
accent
#EB3DDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F