#20157B#20157B
#20157B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.160 H 275.6°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).
Color values
| HEX | #20157B |
|---|---|
| RGB | rgb(32, 21, 123) |
| HSL | hsl(246, 71%, 28%) |
| HSV | hsv(246, 83%, 48%) |
| CMYK | cmyk(74%, 82.9%, 0%, 51.8%) |
| CIE-LAB | lab(16.86, 38.41, -54.99) |
| CIE-LCH | lch(16.86, 67.08, 304.93°) |
| OKLab | oklab(30.03% 0.0157 -0.159) |
| OKLCH | oklch(30.03% 0.16 275.6) |
| XYZ | xyz(4.4378, 2.2730, 18.9399) |
| Luminance | 0.0227 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.44
Royal
#0C1793
ΔE00 3.67
Dark Royal Blue
#02066F
ΔE00 3.72
Deep Blue
#040273
ΔE00 3.92
Navy
#000080
ΔE00 3.94
Darkblue
#00008B
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20157B #707B15
analogous
#153D7B #20157B #53157B
triadic
#20157B #7B2015 #157B20
tetradic
#20157B #7B153D #707B15 #157B53
square
#20157B #7B153D #707B15 #157B53
split-complementary
#20157B #7B5315 #3D7B15
monochromatic
#07041A #120C47 #20157B #2E1EAF #422FDB
Accessibility & contrast
On white
14.44
#20157B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#20157B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20157B
14.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20157B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20157B | 1.00 | 14.44 | 1.45 | 14.44 |
| #FFFFFF | 14.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #20157b; /* rgb */ color: rgb(32, 21, 123); /* oklch */ color: oklch(30.0% 0.160 275.6);
Tailwind
colors: {
custom: {
50: '#6c56a2',
500: '#20157b',
950: '#000000',
},
}SCSS
$custom: #20157b; $custom-light: #6c56a2; $custom-dark: #000000;
JSON
{
"hex": "#20157b",
"rgb": {
"r": 32,
"g": 21,
"b": 123
},
"hsl": {
"h": 246.471,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.30027,
"c": 0.15975,
"h": 275.6
},
"luminance": 0.02273
}Semantic roles & 50–950 ramp
primary
#20157B
secondary
#A4B03B
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F