#18117C#18117C
#18117C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.166 H 272.0°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).
Color values
| HEX | #18117C |
|---|---|
| RGB | rgb(24, 17, 124) |
| HSL | hsl(244, 76%, 28%) |
| HSV | hsv(244, 86%, 49%) |
| CMYK | cmyk(80.6%, 86.3%, 0%, 51.4%) |
| CIE-LAB | lab(15.75, 40.13, -57.49) |
| CIE-LCH | lch(15.75, 70.11, 304.91°) |
| OKLab | oklab(29.15% 0.0058 -0.1663) |
| OKLCH | oklch(29.15% 0.166 272) |
| XYZ | xyz(4.2140, 2.0499, 19.2384) |
| Luminance | 0.0205 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Navy
#000080
ΔE00 2.95
Dark Royal Blue
#02066F
ΔE00 2.96
Deep Blue
#040273
ΔE00 3.05
Darkblue
#00008B
ΔE00 3.35
Royal
#0C1793
ΔE00 3.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18117C #757C11
analogous
#11407C #18117C #4D117C
triadic
#18117C #7C1811 #117C18
tetradic
#18117C #7C1140 #757C11 #117C4D
square
#18117C #7C1140 #757C11 #117C4D
split-complementary
#18117C #7C4D11 #407C11
monochromatic
#05041B #0E0A46 #18117C #2218B2 #3226E1
Accessibility & contrast
On white
14.89
#18117C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.41
#18117C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18117C
14.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18117C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18117C | 1.00 | 14.89 | 1.41 | 14.89 |
| #FFFFFF | 14.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C7F
Deuteranopia (green-blind)
#00227A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #18117c; /* rgb */ color: rgb(24, 17, 124); /* oklch */ color: oklch(29.1% 0.166 272.0);
Tailwind
colors: {
custom: {
50: '#6a53a3',
500: '#18117c',
950: '#000000',
},
}SCSS
$custom: #18117c; $custom-light: #6a53a3; $custom-dark: #000000;
JSON
{
"hex": "#18117c",
"rgb": {
"r": 24,
"g": 17,
"b": 124
},
"hsl": {
"h": 243.925,
"s": 75.887,
"l": 27.647
},
"oklch": {
"l": 0.29145,
"c": 0.16643,
"h": 272
},
"luminance": 0.0205
}Semantic roles & 50–950 ramp
primary
#18117C
secondary
#AAB237
accent
#F235E6
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F