#20168A#20168A
#20168A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.177 H 273.6°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).
Color values
| HEX | #20168A |
|---|---|
| RGB | rgb(32, 22, 138) |
| HSL | hsl(245, 73%, 31%) |
| HSV | hsv(245, 84%, 54%) |
| CMYK | cmyk(76.8%, 84.1%, 0%, 45.9%) |
| CIE-LAB | lab(18.87, 42.74, -61.16) |
| CIE-LCH | lch(18.87, 74.62, 304.95°) |
| OKLab | oklab(31.95% 0.0111 -0.1769) |
| OKLCH | oklch(31.95% 0.177 273.6) |
| XYZ | xyz(5.4685, 2.7153, 24.2757) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.71
Darkblue
#00008B
ΔE00 3.60
Cobalt Blue
#030AA7
ΔE00 4.15
Navy
#000080
ΔE00 4.17
Indigo (survey)
#380282
ΔE00 4.32
Midnight Blue
#191970
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20168A #808A16
analogous
#16468A #20168A #5A168A
triadic
#20168A #8A2016 #168A20
tetradic
#20168A #8A1646 #808A16 #168A5A
square
#20168A #8A1646 #808A16 #168A5A
split-complementary
#20168A #8A5A16 #468A16
monochromatic
#080520 #140E55 #20168A #2C1EBF #493BE0
Accessibility & contrast
On white
13.61
#20168A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#20168A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20168A
13.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20168A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20168A | 1.00 | 13.61 | 1.54 | 13.61 |
| #FFFFFF | 13.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #20168a; /* rgb */ color: rgb(32, 22, 138); /* oklch */ color: oklch(32.0% 0.177 273.6);
Tailwind
colors: {
custom: {
50: '#6f57ad',
500: '#20168a',
950: '#000000',
},
}SCSS
$custom: #20168a; $custom-light: #6f57ad; $custom-dark: #000000;
JSON
{
"hex": "#20168a",
"rgb": {
"r": 32,
"g": 22,
"b": 138
},
"hsl": {
"h": 245.172,
"s": 72.5,
"l": 31.373
},
"oklch": {
"l": 0.31951,
"c": 0.17725,
"h": 273.6
},
"luminance": 0.02716
}Semantic roles & 50–950 ramp
primary
#20168A
secondary
#B3BE3E
accent
#EF39DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F