#20118C#20118C
#20118C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.7% C 0.183 H 273.7°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).
Color values
| HEX | #20118C |
|---|---|
| RGB | rgb(32, 17, 140) |
| HSL | hsl(247, 78%, 31%) |
| HSV | hsv(247, 88%, 55%) |
| CMYK | cmyk(77.1%, 87.9%, 0%, 45.1%) |
| CIE-LAB | lab(18.37, 45.58, -63.24) |
| CIE-LCH | lch(18.37, 77.96, 305.79°) |
| OKLab | oklab(31.68% 0.012 -0.1828) |
| OKLCH | oklch(31.68% 0.183 273.7) |
| XYZ | xyz(5.5282, 2.6008, 25.0165) |
| Luminance | 0.0260 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.93
Darkblue
#00008B
ΔE00 2.85
Navy
#000080
ΔE00 3.62
Cobalt Blue
#030AA7
ΔE00 3.66
Indigo (survey)
#380282
ΔE00 3.82
Royal Blue (survey)
#0504AA
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#20118C #7D8C11
analogous
#113F8C #20118C #5D118C
triadic
#20118C #8C2011 #118C20
tetradic
#20118C #8C113F #7D8C11 #118C5D
square
#20118C #8C113F #7D8C11 #118C5D
split-complementary
#20118C #8C5D11 #3F8C11
monochromatic
#07041F #140A55 #20118C #2C18C3 #4731E6
Accessibility & contrast
On white
13.81
#20118C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#20118C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #20118C
13.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##20118C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##20118C | 1.00 | 13.81 | 1.52 | 13.81 |
| #FFFFFF | 13.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #20118c; /* rgb */ color: rgb(32, 17, 140); /* oklch */ color: oklch(31.7% 0.183 273.7);
Tailwind
colors: {
custom: {
50: '#7055af',
500: '#20118c',
950: '#000000',
},
}SCSS
$custom: #20118c; $custom-light: #7055af; $custom-dark: #000000;
JSON
{
"hex": "#20118c",
"rgb": {
"r": 32,
"g": 17,
"b": 140
},
"hsl": {
"h": 247.317,
"s": 78.344,
"l": 30.784
},
"oklch": {
"l": 0.31682,
"c": 0.18321,
"h": 273.7
},
"luminance": 0.02601
}Semantic roles & 50–950 ramp
primary
#20118C
secondary
#B0C138
accent
#F533DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880