#20168F#20168F
#20168F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.183 H 273.1°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).
Color values
| HEX | #20168F |
|---|---|
| RGB | rgb(32, 22, 143) |
| HSL | hsl(245, 73%, 32%) |
| HSV | hsv(245, 85%, 56%) |
| CMYK | cmyk(77.6%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(19.49, 44.32, -63.25) |
| CIE-LCH | lch(19.49, 77.23, 305.02°) |
| OKLab | oklab(32.56% 0.0098 -0.1829) |
| OKLCH | oklch(32.56% 0.183 273.1) |
| XYZ | xyz(5.8388, 2.8634, 26.2263) |
| Luminance | 0.0286 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.34
Cobalt Blue
#030AA7
ΔE00 3.51
Darkblue
#00008B
ΔE00 3.65
Royal Blue (survey)
#0504AA
ΔE00 4.02
Navy
#000080
ΔE00 4.47
Indigo (survey)
#380282
ΔE00 4.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20168F #858F16
analogous
#16488F #20168F #5D168F
triadic
#20168F #8F2016 #168F20
tetradic
#20168F #8F1648 #858F16 #168F5D
square
#20168F #8F1648 #858F16 #168F5D
split-complementary
#20168F #8F5D16 #488F16
monochromatic
#080625 #140E5A #20168F #2C1EC4 #4C3EE1
Accessibility & contrast
On white
13.35
#20168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#20168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20168F
13.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20168F | 1.00 | 13.35 | 1.57 | 13.35 |
| #FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #20168f; /* rgb */ color: rgb(32, 22, 143); /* oklch */ color: oklch(32.6% 0.183 273.1);
Tailwind
colors: {
custom: {
50: '#7158b1',
500: '#20168f',
950: '#000000',
},
}SCSS
$custom: #20168f; $custom-light: #7158b1; $custom-dark: #000000;
JSON
{
"hex": "#20168f",
"rgb": {
"r": 32,
"g": 22,
"b": 143
},
"hsl": {
"h": 244.959,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.32561,
"c": 0.18321,
"h": 273.1
},
"luminance": 0.02864
}Semantic roles & 50–950 ramp
primary
#20168F
secondary
#B7C13F
accent
#F038E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880