#18117F#18117F
#18117F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.170 H 271.7°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).
Color values
| HEX | #18117F |
|---|---|
| RGB | rgb(24, 17, 127) |
| HSL | hsl(244, 76%, 28%) |
| HSV | hsv(244, 87%, 50%) |
| CMYK | cmyk(81.1%, 86.6%, 0%, 50.2%) |
| CIE-LAB | lab(16.14, 41.09, -58.75) |
| CIE-LCH | lch(16.14, 71.70, 304.97°) |
| OKLab | oklab(29.53% 0.005 -0.17) |
| OKLCH | oklch(29.53% 0.17 271.7) |
| XYZ | xyz(4.4066, 2.1269, 20.2528) |
| Luminance | 0.0213 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.87
Darkblue
#00008B
ΔE00 3.07
Royal
#0C1793
ΔE00 3.09
Deep Blue
#040273
ΔE00 3.25
Midnight Blue
#191970
ΔE00 3.26
Dark Royal Blue
#02066F
ΔE00 3.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18117F #787F11
analogous
#11417F #18117F #4F117F
triadic
#18117F #7F1811 #117F18
tetradic
#18117F #7F1141 #787F11 #117F4F
square
#18117F #7F1141 #787F11 #117F4F
split-complementary
#18117F #7F4F11 #417F11
monochromatic
#05041B #0E0A49 #18117F #2218B5 #3428E2
Accessibility & contrast
On white
14.73
#18117F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#18117F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18117F
14.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18117F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18117F | 1.00 | 14.73 | 1.43 | 14.73 |
| #FFFFFF | 14.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #18117f; /* rgb */ color: rgb(24, 17, 127); /* oklch */ color: oklch(29.5% 0.170 271.7);
Tailwind
colors: {
custom: {
50: '#6a53a5',
500: '#18117f',
950: '#000000',
},
}SCSS
$custom: #18117f; $custom-light: #6a53a5; $custom-dark: #000000;
JSON
{
"hex": "#18117f",
"rgb": {
"r": 24,
"g": 17,
"b": 127
},
"hsl": {
"h": 243.818,
"s": 76.389,
"l": 28.235
},
"oklch": {
"l": 0.29528,
"c": 0.17005,
"h": 271.7
},
"luminance": 0.02127
}Semantic roles & 50–950 ramp
primary
#18117F
secondary
#ADB537
accent
#F335E7
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F