#20187C#20187C
#20187C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.158 H 275.1°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).
Color values
| HEX | #20187C |
|---|---|
| RGB | rgb(32, 24, 124) |
| HSL | hsl(245, 68%, 29%) |
| HSV | hsv(245, 81%, 49%) |
| CMYK | cmyk(74.2%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(17.53, 37.14, -54.52) |
| CIE-LCH | lch(17.53, 65.97, 304.27°) |
| OKLab | oklab(30.53% 0.0141 -0.1577) |
| OKLCH | oklch(30.53% 0.158 275.1) |
| XYZ | xyz(4.5592, 2.4151, 19.2908) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.22
Royal
#0C1793
ΔE00 3.53
Dark Royal Blue
#02066F
ΔE00 4.24
Navy
#000080
ΔE00 4.48
Deep Blue
#040273
ΔE00 4.50
Darkblue
#00008B
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20187C #747C18
analogous
#18427C #20187C #52187C
triadic
#20187C #7C2018 #187C20
tetradic
#20187C #7C1842 #747C18 #187C52
square
#20187C #7C1842 #747C18 #187C52
split-complementary
#20187C #7C5218 #427C18
monochromatic
#07051A #130E49 #20187C #2D22AF #4336D8
Accessibility & contrast
On white
14.16
#20187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#20187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20187C
14.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20187C | 1.00 | 14.16 | 1.48 | 14.16 |
| #FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #20187c; /* rgb */ color: rgb(32, 24, 124); /* oklch */ color: oklch(30.5% 0.158 275.1);
Tailwind
colors: {
custom: {
50: '#6c57a3',
500: '#20187c',
950: '#000000',
},
}SCSS
$custom: #20187c; $custom-light: #6c57a3; $custom-dark: #000000;
JSON
{
"hex": "#20187c",
"rgb": {
"r": 32,
"g": 24,
"b": 124
},
"hsl": {
"h": 244.8,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.3053,
"c": 0.15828,
"h": 275.1
},
"luminance": 0.02416
}Semantic roles & 50–950 ramp
primary
#20187C
secondary
#A8B13F
accent
#EA3DDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F