#18157C#18157C
#18157C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.163 H 271.6°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).
Color values
| HEX | #18157C |
|---|---|
| RGB | rgb(24, 21, 124) |
| HSL | hsl(242, 71%, 28%) |
| HSV | hsv(242, 83%, 49%) |
| CMYK | cmyk(80.6%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(16.43, 38.12, -56.36) |
| CIE-LCH | lch(16.43, 68.04, 304.07°) |
| OKLab | oklab(29.62% 0.0046 -0.1631) |
| OKLCH | oklch(29.62% 0.163 271.6) |
| XYZ | xyz(4.2817, 2.1853, 19.2610) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.35
Royal
#0C1793
ΔE00 3.35
Dark Royal Blue
#02066F
ΔE00 3.50
Navy
#000080
ΔE00 3.71
Deep Blue
#040273
ΔE00 3.75
Darkblue
#00008B
ΔE00 4.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18157C #797C15
analogous
#15457C #18157C #4B157C
triadic
#18157C #7C1815 #157C18
tetradic
#18157C #7C1545 #797C15 #157C4B
square
#18157C #7C1545 #797C15 #157C4B
split-complementary
#18157C #7C4B15 #457C15
monochromatic
#05041A #0E0C48 #18157C #221EB0 #3530DC
Accessibility & contrast
On white
14.61
#18157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#18157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18157C
14.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18157C | 1.00 | 14.61 | 1.44 | 14.61 |
| #FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #18157c; /* rgb */ color: rgb(24, 21, 124); /* oklch */ color: oklch(29.6% 0.163 271.6);
Tailwind
colors: {
custom: {
50: '#6955a3',
500: '#18157c',
950: '#000000',
},
}SCSS
$custom: #18157c; $custom-light: #6955a3; $custom-dark: #000000;
JSON
{
"hex": "#18157c",
"rgb": {
"r": 24,
"g": 21,
"b": 124
},
"hsl": {
"h": 241.748,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.29619,
"c": 0.16319,
"h": 271.6
},
"luminance": 0.02186
}Semantic roles & 50–950 ramp
primary
#18157C
secondary
#AEB13C
accent
#EE3AE9
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F