#20157F#20157F
#20157F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.165 H 275.1°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).
Color values
| HEX | #20157F |
|---|---|
| RGB | rgb(32, 21, 127) |
| HSL | hsl(246, 72%, 29%) |
| HSV | hsv(246, 83%, 50%) |
| CMYK | cmyk(74.8%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(17.34, 39.71, -56.74) |
| CIE-LCH | lch(17.34, 69.25, 304.99°) |
| OKLab | oklab(30.51% 0.0146 -0.164) |
| OKLCH | oklch(30.51% 0.165 275.1) |
| XYZ | xyz(4.6933, 2.3753, 20.2857) |
| Luminance | 0.0238 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.94
Royal
#0C1793
ΔE00 3.10
Navy
#000080
ΔE00 3.81
Darkblue
#00008B
ΔE00 3.88
Dark Royal Blue
#02066F
ΔE00 4.01
Deep Blue
#040273
ΔE00 4.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20157F #747F15
analogous
#153F7F #20157F #55157F
triadic
#20157F #7F2015 #157F20
tetradic
#20157F #7F153F #747F15 #157F55
square
#20157F #7F153F #747F15 #157F55
split-complementary
#20157F #7F5515 #3F7F15
monochromatic
#07041A #130C4A #20157F #2D1EB4 #4331DD
Accessibility & contrast
On white
14.24
#20157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#20157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20157F
14.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20157F | 1.00 | 14.24 | 1.48 | 14.24 |
| #FFFFFF | 14.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #20157f; /* rgb */ color: rgb(32, 21, 127); /* oklch */ color: oklch(30.5% 0.165 275.1);
Tailwind
colors: {
custom: {
50: '#6d56a5',
500: '#20157f',
950: '#000000',
},
}SCSS
$custom: #20157f; $custom-light: #6d56a5; $custom-dark: #000000;
JSON
{
"hex": "#20157f",
"rgb": {
"r": 32,
"g": 21,
"b": 127
},
"hsl": {
"h": 246.226,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.30506,
"c": 0.1647,
"h": 275.1
},
"luminance": 0.02376
}Semantic roles & 50–950 ramp
primary
#20157F
secondary
#A8B43C
accent
#EE39DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F