#18168F#18168F
#18168F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.185 H 270.0°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).
Color values
| HEX | #18168F |
|---|---|
| RGB | rgb(24, 22, 143) |
| HSL | hsl(241, 73%, 32%) |
| HSV | hsv(241, 85%, 56%) |
| CMYK | cmyk(83.2%, 84.6%, 0%, 43.9%) |
| CIE-LAB | lab(19.02, 43.86, -64.05) |
| CIE-LCH | lch(19.02, 77.63, 304.40°) |
| OKLab | oklab(32.11% 0 -0.1854) |
| OKLCH | oklch(32.11% 0.185 270) |
| XYZ | xyz(5.6198, 2.7505, 26.2160) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.82
Cobalt Blue
#030AA7
ΔE00 3.46
Darkblue
#00008B
ΔE00 3.47
Royal Blue (survey)
#0504AA
ΔE00 4.01
Navy
#000080
ΔE00 4.29
Midnight Blue
#191970
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18168F #8D8F16
analogous
#16508F #18168F #55168F
triadic
#18168F #8F1816 #168F18
tetradic
#18168F #8F1650 #8D8F16 #168F55
square
#18168F #8F1650 #8D8F16 #168F55
split-complementary
#18168F #8F5516 #508F16
monochromatic
#060625 #0F0E5A #18168F #211EC4 #413EE1
Accessibility & contrast
On white
13.55
#18168F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#18168F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18168F
13.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18168F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18168F | 1.00 | 13.55 | 1.55 | 13.55 |
| #FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00288D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18168f; /* rgb */ color: rgb(24, 22, 143); /* oklch */ color: oklch(32.1% 0.185 270.0);
Tailwind
colors: {
custom: {
50: '#6e57b1',
500: '#18168f',
950: '#000000',
},
}SCSS
$custom: #18168f; $custom-light: #6e57b1; $custom-dark: #000000;
JSON
{
"hex": "#18168f",
"rgb": {
"r": 24,
"g": 22,
"b": 143
},
"hsl": {
"h": 240.992,
"s": 73.333,
"l": 32.353
},
"oklch": {
"l": 0.32107,
"c": 0.18541,
"h": 270
},
"luminance": 0.02751
}Semantic roles & 50–950 ramp
primary
#18168F
secondary
#BFC13F
accent
#F038ED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880