#18167E#18167E
#18167E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.165 H 271.3°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #18167E |
|---|---|
| RGB | rgb(24, 22, 126) |
| HSL | hsl(241, 70%, 29%) |
| HSV | hsv(241, 83%, 49%) |
| CMYK | cmyk(81%, 82.5%, 0%, 50.6%) |
| CIE-LAB | lab(16.86, 38.26, -56.91) |
| CIE-LCH | lch(16.86, 68.58, 303.91°) |
| OKLab | oklab(29.99% 0.0039 -0.1647) |
| OKLCH | oklch(29.99% 0.165 271.3) |
| XYZ | xyz(4.4282, 2.2739, 19.9401) |
| Luminance | 0.0227 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.51
Royal
#0C1793
ΔE00 3.04
Dark Royal Blue
#02066F
ΔE00 3.81
Navy
#000080
ΔE00 3.85
Darkblue
#00008B
ΔE00 4.01
Deep Blue
#040273
ΔE00 4.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18167E #7C7E16
analogous
#16487E #18167E #4C167E
triadic
#18167E #7E1816 #167E18
tetradic
#18167E #7E1648 #7C7E16 #167E4C
square
#18167E #7E1648 #7C7E16 #167E4C
split-complementary
#18167E #7E4C16 #487E16
monochromatic
#05051A #0E0D4A #18167E #221FB2 #3633DB
Accessibility & contrast
On white
14.43
#18167E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#18167E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18167E
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18167E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18167E | 1.00 | 14.43 | 1.45 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #18167e; /* rgb */ color: rgb(24, 22, 126); /* oklch */ color: oklch(30.0% 0.165 271.3);
Tailwind
colors: {
custom: {
50: '#6a56a5',
500: '#18167e',
950: '#000000',
},
}SCSS
$custom: #18167e; $custom-light: #6a56a5; $custom-dark: #000000;
JSON
{
"hex": "#18167e",
"rgb": {
"r": 24,
"g": 22,
"b": 126
},
"hsl": {
"h": 241.154,
"s": 70.27,
"l": 29.02
},
"oklch": {
"l": 0.29993,
"c": 0.1648,
"h": 271.3
},
"luminance": 0.02274
}Semantic roles & 50–950 ramp
primary
#18167E
secondary
#B1B33D
accent
#ED3BEA
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F