#18157B#18157B
#18157B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.162 H 271.7°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).
Color values
| HEX | #18157B |
|---|---|
| RGB | rgb(24, 21, 123) |
| HSL | hsl(242, 71%, 28%) |
| HSV | hsv(242, 83%, 48%) |
| CMYK | cmyk(80.5%, 82.9%, 0%, 51.8%) |
| CIE-LAB | lab(16.31, 37.78, -55.92) |
| CIE-LCH | lch(16.31, 67.49, 304.04°) |
| OKLab | oklab(29.5% 0.0049 -0.1619) |
| OKLCH | oklch(29.5% 0.162 271.7) |
| XYZ | xyz(4.2188, 2.1601, 18.9297) |
| Luminance | 0.0216 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.21
Dark Royal Blue
#02066F
ΔE00 3.43
Royal
#0C1793
ΔE00 3.50
Deep Blue
#040273
ΔE00 3.72
Navy
#000080
ΔE00 3.76
Darkblue
#00008B
ΔE00 4.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18157B #787B15
analogous
#15457B #18157B #4B157B
triadic
#18157B #7B1815 #157B18
tetradic
#18157B #7B1545 #787B15 #157B4B
square
#18157B #7B1545 #787B15 #157B4B
split-complementary
#18157B #7B4B15 #457B15
monochromatic
#05041A #0E0C47 #18157B #221EAF #342FDB
Accessibility & contrast
On white
14.66
#18157B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#18157B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18157B
14.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18157B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18157B | 1.00 | 14.66 | 1.43 | 14.66 |
| #FFFFFF | 14.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002379
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #18157b; /* rgb */ color: rgb(24, 21, 123); /* oklch */ color: oklch(29.5% 0.162 271.7);
Tailwind
colors: {
custom: {
50: '#6955a2',
500: '#18157b',
950: '#000000',
},
}SCSS
$custom: #18157b; $custom-light: #6955a2; $custom-dark: #000000;
JSON
{
"hex": "#18157b",
"rgb": {
"r": 24,
"g": 21,
"b": 123
},
"hsl": {
"h": 241.765,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.29496,
"c": 0.16194,
"h": 271.7
},
"luminance": 0.02161
}Semantic roles & 50–950 ramp
primary
#18157B
secondary
#ADB03B
accent
#EE3AE8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F