#18167F#18167F
#18167F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.166 H 271.3°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).
Color values
| HEX | #18167F |
|---|---|
| RGB | rgb(24, 22, 127) |
| HSL | hsl(241, 70%, 29%) |
| HSV | hsv(241, 83%, 50%) |
| CMYK | cmyk(81.1%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(16.99, 38.60, -57.34) |
| CIE-LCH | lch(16.99, 69.13, 303.95°) |
| OKLab | oklab(30.12% 0.0036 -0.166) |
| OKLCH | oklch(30.12% 0.166 271.3) |
| XYZ | xyz(4.4931, 2.2998, 20.2817) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.66
Royal
#0C1793
ΔE00 2.89
Navy
#000080
ΔE00 3.83
Dark Royal Blue
#02066F
ΔE00 3.89
Darkblue
#00008B
ΔE00 3.93
Deep Blue
#040273
ΔE00 4.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18167F #7D7F16
analogous
#16497F #18167F #4D167F
triadic
#18167F #7F1816 #167F18
tetradic
#18167F #7F1649 #7D7F16 #167F4D
square
#18167F #7F1649 #7D7F16 #167F4D
split-complementary
#18167F #7F4D16 #497F16
monochromatic
#05051A #0E0D4B #18167F #221FB3 #3734DC
Accessibility & contrast
On white
14.38
#18167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#18167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18167F
14.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18167F | 1.00 | 14.38 | 1.46 | 14.38 |
| #FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18167f; /* rgb */ color: rgb(24, 22, 127); /* oklch */ color: oklch(30.1% 0.166 271.3);
Tailwind
colors: {
custom: {
50: '#6a56a5',
500: '#18167f',
950: '#000000',
},
}SCSS
$custom: #18167f; $custom-light: #6a56a5; $custom-dark: #000000;
JSON
{
"hex": "#18167f",
"rgb": {
"r": 24,
"g": 22,
"b": 127
},
"hsl": {
"h": 241.143,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.30116,
"c": 0.16604,
"h": 271.3
},
"luminance": 0.023
}Semantic roles & 50–950 ramp
primary
#18167F
secondary
#B2B43D
accent
#ED3BEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F