#18156E#18156E
#18156E is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.145 H 273.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).
Color values
| HEX | #18156E |
|---|---|
| RGB | rgb(24, 21, 110) |
| HSL | hsl(242, 68%, 26%) |
| HSV | hsv(242, 81%, 43%) |
| CMYK | cmyk(78.2%, 80.9%, 0%, 56.9%) |
| CIE-LAB | lab(14.71, 33.30, -50.17) |
| CIE-LCH | lch(14.71, 60.22, 303.58°) |
| OKLab | oklab(27.92% 0.0079 -0.1452) |
| OKLCH | oklch(27.92% 0.145 273.1) |
| XYZ | xyz(3.4584, 1.8560, 14.9248) |
| Luminance | 0.0186 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.02
Dark Royal Blue
#02066F
ΔE00 3.25
Darkblue (survey)
#030764
ΔE00 3.34
Deep Blue
#040273
ΔE00 3.97
Dark Blue
#00035B
ΔE00 4.78
Navy
#000080
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18156E #6B6E15
analogous
#153F6E #18156E #44156E
triadic
#18156E #6E1815 #156E18
tetradic
#18156E #6E153F #6B6E15 #156E44
square
#18156E #6E153F #6B6E15 #156E44
split-complementary
#18156E #6E4415 #3F6E15
monochromatic
#06051A #0D0B3B #18156E #231FA1 #2E29D5
Accessibility & contrast
On white
15.32
#18156E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#18156E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18156E
15.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18156E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18156E | 1.00 | 15.32 | 1.37 | 15.32 |
| #FFFFFF | 15.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #18156e; /* rgb */ color: rgb(24, 21, 110); /* oklch */ color: oklch(27.9% 0.145 273.1);
Tailwind
colors: {
custom: {
50: '#655499',
500: '#18156e',
950: '#000000',
},
}SCSS
$custom: #18156e; $custom-light: #655499; $custom-dark: #000000;
JSON
{
"hex": "#18156e",
"rgb": {
"r": 24,
"g": 21,
"b": 110
},
"hsl": {
"h": 242.022,
"s": 67.939,
"l": 25.686
},
"oklch": {
"l": 0.27916,
"c": 0.14539,
"h": 273.1
},
"luminance": 0.01856
}Semantic roles & 50–950 ramp
primary
#18156E
secondary
#A1A43A
accent
#EB3DE5
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E