#20157E#20157E
#20157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.163 H 275.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).
Color values
| HEX | #20157E |
|---|---|
| RGB | rgb(32, 21, 126) |
| HSL | hsl(246, 71%, 29%) |
| HSV | hsv(246, 83%, 49%) |
| CMYK | cmyk(74.6%, 83.3%, 0%, 50.6%) |
| CIE-LAB | lab(17.22, 39.39, -56.30) |
| CIE-LCH | lch(17.22, 68.71, 304.97°) |
| OKLab | oklab(30.39% 0.0149 -0.1628) |
| OKLCH | oklch(30.39% 0.163 275.2) |
| XYZ | xyz(4.6285, 2.3493, 19.9442) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.82
Royal
#0C1793
ΔE00 3.24
Navy
#000080
ΔE00 3.83
Dark Royal Blue
#02066F
ΔE00 3.93
Darkblue
#00008B
ΔE00 3.96
Deep Blue
#040273
ΔE00 4.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20157E #737E15
analogous
#153F7E #20157E #55157E
triadic
#20157E #7E2015 #157E20
tetradic
#20157E #7E153F #737E15 #157E55
square
#20157E #7E153F #737E15 #157E55
split-complementary
#20157E #7E5515 #3F7E15
monochromatic
#07041A #130C4A #20157E #2D1EB2 #4331DD
Accessibility & contrast
On white
14.29
#20157E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#20157E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20157E
14.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20157E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20157E | 1.00 | 14.29 | 1.47 | 14.29 |
| #FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #20157e; /* rgb */ color: rgb(32, 21, 126); /* oklch */ color: oklch(30.4% 0.163 275.2);
Tailwind
colors: {
custom: {
50: '#6c56a5',
500: '#20157e',
950: '#000000',
},
}SCSS
$custom: #20157e; $custom-light: #6c56a5; $custom-dark: #000000;
JSON
{
"hex": "#20157e",
"rgb": {
"r": 32,
"g": 21,
"b": 126
},
"hsl": {
"h": 246.286,
"s": 71.429,
"l": 28.824
},
"oklch": {
"l": 0.30386,
"c": 0.16347,
"h": 275.2
},
"luminance": 0.0235
}Semantic roles & 50–950 ramp
primary
#20157E
secondary
#A7B33C
accent
#EE3ADB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F