#18166C#18166C
#18166C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.142 H 273.2°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).
Color values
| HEX | #18166C |
|---|---|
| RGB | rgb(24, 22, 108) |
| HSL | hsl(241, 66%, 25%) |
| HSV | hsv(241, 80%, 42%) |
| CMYK | cmyk(77.8%, 79.6%, 0%, 57.6%) |
| CIE-LAB | lab(14.68, 32.00, -48.91) |
| CIE-LCH | lch(14.68, 58.45, 303.20°) |
| OKLab | oklab(27.82% 0.0079 -0.1415) |
| OKLCH | oklch(27.82% 0.142 273.2) |
| XYZ | xyz(3.3695, 1.8504, 14.3640) |
| Luminance | 0.0185 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.90
Darkblue (survey)
#030764
ΔE00 3.49
Dark Royal Blue
#02066F
ΔE00 3.60
Deep Blue
#040273
ΔE00 4.36
Dark Blue
#00035B
ΔE00 4.84
Dark Indigo
#1F0954
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18166C #6A6C16
analogous
#163F6C #18166C #43166C
triadic
#18166C #6C1816 #166C18
tetradic
#18166C #6C163F #6A6C16 #166C43
square
#18166C #6C163F #6A6C16 #166C43
split-complementary
#18166C #6C4316 #3F6C16
monochromatic
#060519 #0D0C39 #18166C #23209F #2F2BD2
Accessibility & contrast
On white
15.33
#18166C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#18166C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18166C
15.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18166C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18166C | 1.00 | 15.33 | 1.37 | 15.33 |
| #FFFFFF | 15.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #18166c; /* rgb */ color: rgb(24, 22, 108); /* oklch */ color: oklch(27.8% 0.142 273.2);
Tailwind
colors: {
custom: {
50: '#655597',
500: '#18166c',
950: '#000000',
},
}SCSS
$custom: #18166c; $custom-light: #655597; $custom-dark: #000000;
JSON
{
"hex": "#18166c",
"rgb": {
"r": 24,
"g": 22,
"b": 108
},
"hsl": {
"h": 241.395,
"s": 66.154,
"l": 25.49
},
"oklch": {
"l": 0.27824,
"c": 0.14175,
"h": 273.2
},
"luminance": 0.01851
}Semantic roles & 50–950 ramp
primary
#18166C
secondary
#A0A23C
accent
#E93FE5
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#06030E
muted
#7A787E