#18157F#18157F
#18157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.167 H 271.3°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).
Color values
| HEX | #18157F |
|---|---|
| RGB | rgb(24, 21, 127) |
| HSL | hsl(242, 72%, 29%) |
| HSV | hsv(242, 83%, 50%) |
| CMYK | cmyk(81.1%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(16.81, 39.12, -57.64) |
| CIE-LCH | lch(16.81, 69.67, 304.17°) |
| OKLab | oklab(29.99% 0.0039 -0.1668) |
| OKLCH | oklch(29.99% 0.167 271.3) |
| XYZ | xyz(4.4743, 2.2623, 20.2754) |
| Luminance | 0.0226 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.76
Royal
#0C1793
ΔE00 2.91
Navy
#000080
ΔE00 3.62
Darkblue
#00008B
ΔE00 3.74
Dark Royal Blue
#02066F
ΔE00 3.74
Deep Blue
#040273
ΔE00 3.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18157F #7C7F15
analogous
#15477F #18157F #4D157F
triadic
#18157F #7F1815 #157F18
tetradic
#18157F #7F1547 #7C7F15 #157F4D
square
#18157F #7F1547 #7C7F15 #157F4D
split-complementary
#18157F #7F4D15 #477F15
monochromatic
#05041A #0E0C4A #18157F #221EB4 #3631DD
Accessibility & contrast
On white
14.46
#18157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#18157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18157F
14.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18157F | 1.00 | 14.46 | 1.45 | 14.46 |
| #FFFFFF | 14.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #18157f; /* rgb */ color: rgb(24, 21, 127); /* oklch */ color: oklch(30.0% 0.167 271.3);
Tailwind
colors: {
custom: {
50: '#6a55a5',
500: '#18157f',
950: '#000000',
},
}SCSS
$custom: #18157f; $custom-light: #6a55a5; $custom-dark: #000000;
JSON
{
"hex": "#18157f",
"rgb": {
"r": 24,
"g": 21,
"b": 127
},
"hsl": {
"h": 241.698,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.29991,
"c": 0.1669,
"h": 271.3
},
"luminance": 0.02263
}Semantic roles & 50–950 ramp
primary
#18157F
secondary
#B1B43C
accent
#EE39E9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F