#20187B#20187B
#20187B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.157 H 275.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).
Color values
| HEX | #20187B |
|---|---|
| RGB | rgb(32, 24, 123) |
| HSL | hsl(245, 67%, 29%) |
| HSV | hsv(245, 80%, 48%) |
| CMYK | cmyk(74%, 80.5%, 0%, 51.8%) |
| CIE-LAB | lab(17.41, 36.81, -54.07) |
| CIE-LCH | lch(17.41, 65.41, 304.24°) |
| OKLab | oklab(30.41% 0.0143 -0.1564) |
| OKLCH | oklch(30.41% 0.157 275.2) |
| XYZ | xyz(4.4963, 2.3900, 18.9594) |
| Luminance | 0.0239 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.08
Royal
#0C1793
ΔE00 3.68
Dark Royal Blue
#02066F
ΔE00 4.19
Deep Blue
#040273
ΔE00 4.48
Navy
#000080
ΔE00 4.53
Darkblue
#00008B
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20187B #737B18
analogous
#18427B #20187B #52187B
triadic
#20187B #7B2018 #187B20
tetradic
#20187B #7B1842 #737B18 #187B52
square
#20187B #7B1842 #737B18 #187B52
split-complementary
#20187B #7B5218 #427B18
monochromatic
#07051A #130E48 #20187B #2D22AE #4336D8
Accessibility & contrast
On white
14.21
#20187B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#20187B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20187B
14.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20187B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20187B | 1.00 | 14.21 | 1.48 | 14.21 |
| #FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #20187b; /* rgb */ color: rgb(32, 24, 123); /* oklch */ color: oklch(30.4% 0.157 275.2);
Tailwind
colors: {
custom: {
50: '#6b57a2',
500: '#20187b',
950: '#000000',
},
}SCSS
$custom: #20187b; $custom-light: #6b57a2; $custom-dark: #000000;
JSON
{
"hex": "#20187b",
"rgb": {
"r": 32,
"g": 24,
"b": 123
},
"hsl": {
"h": 244.848,
"s": 67.347,
"l": 28.824
},
"oklch": {
"l": 0.30414,
"c": 0.15702,
"h": 275.2
},
"luminance": 0.0239
}Semantic roles & 50–950 ramp
primary
#20187B
secondary
#A7B03F
accent
#EA3EDC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F