#18117E#18117E
#18117E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.169 H 271.8°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).
Color values
| HEX | #18117E |
|---|---|
| RGB | rgb(24, 17, 126) |
| HSL | hsl(244, 76%, 28%) |
| HSV | hsv(244, 87%, 49%) |
| CMYK | cmyk(81%, 86.5%, 0%, 50.6%) |
| CIE-LAB | lab(16.01, 40.77, -58.33) |
| CIE-LCH | lch(16.01, 71.17, 304.95°) |
| OKLab | oklab(29.4% 0.0052 -0.1688) |
| OKLCH | oklch(29.4% 0.169 271.8) |
| XYZ | xyz(4.3418, 2.1010, 19.9113) |
| Luminance | 0.0210 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.89
Midnight Blue
#191970
ΔE00 3.15
Darkblue
#00008B
ΔE00 3.15
Dark Royal Blue
#02066F
ΔE00 3.16
Deep Blue
#040273
ΔE00 3.17
Royal
#0C1793
ΔE00 3.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18117E #777E11
analogous
#11407E #18117E #4E117E
triadic
#18117E #7E1811 #117E18
tetradic
#18117E #7E1140 #777E11 #117E4E
square
#18117E #7E1140 #777E11 #117E4E
split-complementary
#18117E #7E4E11 #407E11
monochromatic
#05041B #0E0A48 #18117E #2218B4 #3327E2
Accessibility & contrast
On white
14.79
#18117E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#18117E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18117E
14.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18117E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18117E | 1.00 | 14.79 | 1.42 | 14.79 |
| #FFFFFF | 14.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00227C
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #18117e; /* rgb */ color: rgb(24, 17, 126); /* oklch */ color: oklch(29.4% 0.169 271.8);
Tailwind
colors: {
custom: {
50: '#6a53a5',
500: '#18117e',
950: '#000000',
},
}SCSS
$custom: #18117e; $custom-light: #6a53a5; $custom-dark: #000000;
JSON
{
"hex": "#18117e",
"rgb": {
"r": 24,
"g": 17,
"b": 126
},
"hsl": {
"h": 243.853,
"s": 76.224,
"l": 28.039
},
"oklch": {
"l": 0.294,
"c": 0.16885,
"h": 271.8
},
"luminance": 0.02101
}Semantic roles & 50–950 ramp
primary
#18117E
secondary
#ACB437
accent
#F335E7
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F