#20318E#20318E
#20318E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.154 H 269.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).
Color values
| HEX | #20318E |
|---|---|
| RGB | rgb(32, 49, 142) |
| HSL | hsl(231, 63%, 34%) |
| HSV | hsv(231, 77%, 56%) |
| CMYK | cmyk(77.5%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(25.13, 27.99, -53.33) |
| CIE-LCH | lch(25.13, 60.23, 297.69°) |
| OKLab | oklab(36.56% -0.0026 -0.1542) |
| OKLCH | oklch(36.56% 0.154 269) |
| XYZ | xyz(6.5748, 4.4560, 26.0995) |
| Luminance | 0.0446 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.41
Blueberry
#464196
ΔE00 6.33
Darkslateblue
#483D8B
ΔE00 6.55
Royal
#0C1793
ΔE00 6.86
Midnight Blue
#191970
ΔE00 7.48
Cobalt
#0047AB
ΔE00 8.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20318E #8E7D20
analogous
#20688E #20318E #46208E
triadic
#20318E #8E2031 #318E20
tetradic
#20318E #8E2068 #8E7D20 #208E46
square
#20318E #8E2068 #8E7D20 #208E46
split-complementary
#20318E #8E4620 #688E20
monochromatic
#090F2A #15205C #20318E #2B42C0 #5166D8
Accessibility & contrast
On white
11.10
#20318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#20318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20318E
11.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20318E | 1.00 | 11.10 | 1.89 | 11.10 |
| #FFFFFF | 11.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #20318e; /* rgb */ color: rgb(32, 49, 142); /* oklch */ color: oklch(36.6% 0.154 269.0);
Tailwind
colors: {
custom: {
50: '#6e69b0',
500: '#20318e',
950: '#000000',
},
}SCSS
$custom: #20318e; $custom-light: #6e69b0; $custom-dark: #000000;
JSON
{
"hex": "#20318e",
"rgb": {
"r": 32,
"g": 49,
"b": 142
},
"hsl": {
"h": 230.727,
"s": 63.218,
"l": 34.118
},
"oklch": {
"l": 0.36555,
"c": 0.15425,
"h": 269
},
"luminance": 0.04457
}Semantic roles & 50–950 ramp
primary
#20318E
secondary
#BBAA4F
accent
#CD42E6
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80