#18156F#18156F
#18156F is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.147 H 273.0°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).
Color values
| HEX | #18156F |
|---|---|
| RGB | rgb(24, 21, 111) |
| HSL | hsl(242, 68%, 26%) |
| HSV | hsv(242, 81%, 44%) |
| CMYK | cmyk(78.4%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(14.83, 33.65, -50.62) |
| CIE-LCH | lch(14.83, 60.79, 303.62°) |
| OKLab | oklab(28.04% 0.0077 -0.1465) |
| OKLCH | oklch(28.04% 0.147 273) |
| XYZ | xyz(3.5131, 1.8779, 15.2132) |
| Luminance | 0.0188 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.02
Dark Royal Blue
#02066F
ΔE00 3.21
Darkblue (survey)
#030764
ΔE00 3.39
Deep Blue
#040273
ΔE00 3.90
Navy
#000080
ΔE00 4.77
Dark Blue
#00035B
ΔE00 4.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18156F #6C6F15
analogous
#153F6F #18156F #45156F
triadic
#18156F #6F1815 #156F18
tetradic
#18156F #6F153F #6C6F15 #156F45
square
#18156F #6F153F #6C6F15 #156F45
split-complementary
#18156F #6F4515 #3F6F15
monochromatic
#06051A #0D0B3C #18156F #231FA2 #2E28D6
Accessibility & contrast
On white
15.27
#18156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#18156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18156F
15.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18156F | 1.00 | 15.27 | 1.38 | 15.27 |
| #FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #18156f; /* rgb */ color: rgb(24, 21, 111); /* oklch */ color: oklch(28.0% 0.147 273.0);
Tailwind
colors: {
custom: {
50: '#665499',
500: '#18156f',
950: '#000000',
},
}SCSS
$custom: #18156f; $custom-light: #665499; $custom-dark: #000000;
JSON
{
"hex": "#18156f",
"rgb": {
"r": 24,
"g": 21,
"b": 111
},
"hsl": {
"h": 242,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.28036,
"c": 0.14668,
"h": 273
},
"luminance": 0.01878
}Semantic roles & 50–950 ramp
primary
#18156F
secondary
#A2A53A
accent
#EB3DE5
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E