#20187F#20187F
#20187F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.162 H 274.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).
Color values
| HEX | #20187F |
|---|---|
| RGB | rgb(32, 24, 127) |
| HSL | hsl(245, 68%, 30%) |
| HSV | hsv(245, 81%, 50%) |
| CMYK | cmyk(74.8%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(17.88, 38.15, -55.85) |
| CIE-LCH | lch(17.88, 67.63, 304.34°) |
| OKLab | oklab(30.88% 0.0133 -0.1615) |
| OKLCH | oklch(30.88% 0.162 274.7) |
| XYZ | xyz(4.7518, 2.4922, 20.3052) |
| Luminance | 0.0249 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.65
Royal
#0C1793
ΔE00 3.09
Navy
#000080
ΔE00 4.39
Darkblue
#00008B
ΔE00 4.42
Dark Royal Blue
#02066F
ΔE00 4.42
Deep Blue
#040273
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20187F #777F18
analogous
#18447F #20187F #54187F
triadic
#20187F #7F2018 #187F20
tetradic
#20187F #7F1844 #777F18 #187F54
square
#20187F #7F1844 #777F18 #187F54
split-complementary
#20187F #7F5418 #447F18
monochromatic
#06051A #130E4C #20187F #2D22B2 #4538D9
Accessibility & contrast
On white
14.01
#20187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#20187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20187F
14.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20187F | 1.00 | 14.01 | 1.50 | 14.01 |
| #FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #20187f; /* rgb */ color: rgb(32, 24, 127); /* oklch */ color: oklch(30.9% 0.162 274.7);
Tailwind
colors: {
custom: {
50: '#6c57a5',
500: '#20187f',
950: '#000000',
},
}SCSS
$custom: #20187f; $custom-light: #6c57a5; $custom-dark: #000000;
JSON
{
"hex": "#20187f",
"rgb": {
"r": 32,
"g": 24,
"b": 127
},
"hsl": {
"h": 244.66,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.30881,
"c": 0.16206,
"h": 274.7
},
"luminance": 0.02493
}Semantic roles & 50–950 ramp
primary
#20187F
secondary
#AAB33F
accent
#EB3DDE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F