#18168E#18168E
#18168E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.184 H 270.1°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).
Color values
| HEX | #18168E |
|---|---|
| RGB | rgb(24, 22, 142) |
| HSL | hsl(241, 73%, 32%) |
| HSV | hsv(241, 85%, 56%) |
| CMYK | cmyk(83.1%, 84.5%, 0%, 44.3%) |
| CIE-LAB | lab(18.89, 43.54, -63.64) |
| CIE-LCH | lch(18.89, 77.11, 304.38°) |
| OKLab | oklab(31.98% 0.0002 -0.1842) |
| OKLCH | oklch(31.98% 0.184 270.1) |
| XYZ | xyz(5.5444, 2.7204, 25.8188) |
| Luminance | 0.0272 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.91
Darkblue
#00008B
ΔE00 3.45
Cobalt Blue
#030AA7
ΔE00 3.59
Royal Blue (survey)
#0504AA
ΔE00 4.13
Navy
#000080
ΔE00 4.22
Midnight Blue
#191970
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18168E #8C8E16
analogous
#16508E #18168E #54168E
triadic
#18168E #8E1816 #168E18
tetradic
#18168E #8E1650 #8C8E16 #168E54
square
#18168E #8E1650 #8C8E16 #168E54
split-complementary
#18168E #8E5416 #508E16
monochromatic
#060624 #0F0E59 #18168E #211EC3 #403DE1
Accessibility & contrast
On white
13.60
#18168E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#18168E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18168E
13.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18168E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18168E | 1.00 | 13.60 | 1.54 | 13.60 |
| #FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18168e; /* rgb */ color: rgb(24, 22, 142); /* oklch */ color: oklch(32.0% 0.184 270.1);
Tailwind
colors: {
custom: {
50: '#6e57b0',
500: '#18168e',
950: '#000000',
},
}SCSS
$custom: #18168e; $custom-light: #6e57b0; $custom-dark: #000000;
JSON
{
"hex": "#18168e",
"rgb": {
"r": 24,
"g": 22,
"b": 142
},
"hsl": {
"h": 241,
"s": 73.171,
"l": 32.157
},
"oklch": {
"l": 0.31981,
"c": 0.18422,
"h": 270.1
},
"luminance": 0.02721
}Semantic roles & 50–950 ramp
primary
#18168E
secondary
#BFC13F
accent
#F038ED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880