#18168B#18168B
#18168B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.181 H 270.3°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).
Color values
| HEX | #18168B |
|---|---|
| RGB | rgb(24, 22, 139) |
| HSL | hsl(241, 73%, 32%) |
| HSV | hsv(241, 84%, 55%) |
| CMYK | cmyk(82.7%, 84.2%, 0%, 45.5%) |
| CIE-LAB | lab(18.50, 42.57, -62.40) |
| CIE-LCH | lch(18.50, 75.54, 304.30°) |
| OKLab | oklab(31.61% 0.0009 -0.1806) |
| OKLCH | oklch(31.61% 0.181 270.3) |
| XYZ | xyz(5.3222, 2.6315, 24.6485) |
| Luminance | 0.0263 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.24
Darkblue
#00008B
ΔE00 3.43
Cobalt Blue
#030AA7
ΔE00 3.98
Navy
#000080
ΔE00 4.04
Midnight Blue
#191970
ΔE00 4.36
Royal Blue (survey)
#0504AA
ΔE00 4.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18168B #898B16
analogous
#164F8B #18168B #53168B
triadic
#18168B #8B1816 #168B18
tetradic
#18168B #8B164F #898B16 #168B53
square
#18168B #8B164F #898B16 #168B53
split-complementary
#18168B #8B5316 #4F8B16
monochromatic
#060521 #0F0E56 #18168B #211EC0 #3E3BE0
Accessibility & contrast
On white
13.76
#18168B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#18168B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18168B
13.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18168B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18168B | 1.00 | 13.76 | 1.53 | 13.76 |
| #FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002789
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #18168b; /* rgb */ color: rgb(24, 22, 139); /* oklch */ color: oklch(31.6% 0.181 270.3);
Tailwind
colors: {
custom: {
50: '#6d57ae',
500: '#18168b',
950: '#000000',
},
}SCSS
$custom: #18168b; $custom-light: #6d57ae; $custom-dark: #000000;
JSON
{
"hex": "#18168b",
"rgb": {
"r": 24,
"g": 22,
"b": 139
},
"hsl": {
"h": 241.026,
"s": 72.671,
"l": 31.569
},
"oklch": {
"l": 0.31605,
"c": 0.18064,
"h": 270.3
},
"luminance": 0.02632
}Semantic roles & 50–950 ramp
primary
#18168B
secondary
#BDBF3E
accent
#EF38EC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F