#18147F#18147F
#18147F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.168 H 271.4°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #18147F |
|---|---|
| RGB | rgb(24, 20, 127) |
| HSL | hsl(242, 73%, 29%) |
| HSV | hsv(242, 84%, 50%) |
| CMYK | cmyk(81.1%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(16.63, 39.64, -57.93) |
| CIE-LCH | lch(16.63, 70.20, 304.38°) |
| OKLab | oklab(29.87% 0.0042 -0.1677) |
| OKLCH | oklch(29.87% 0.168 271.4) |
| XYZ | xyz(4.4563, 2.2263, 20.2694) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.88
Royal
#0C1793
ΔE00 2.93
Navy
#000080
ΔE00 3.42
Darkblue
#00008B
ΔE00 3.55
Dark Royal Blue
#02066F
ΔE00 3.60
Deep Blue
#040273
ΔE00 3.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18147F #7B7F14
analogous
#14467F #18147F #4E147F
triadic
#18147F #7F1814 #147F18
tetradic
#18147F #7F1446 #7B7F14 #147F4E
square
#18147F #7F1446 #7B7F14 #147F4E
split-complementary
#18147F #7F4E14 #467F14
monochromatic
#05041A #0E0C4A #18147F #221CB4 #362FDE
Accessibility & contrast
On white
14.53
#18147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#18147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18147F
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18147F | 1.00 | 14.53 | 1.45 | 14.53 |
| #FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #18147f; /* rgb */ color: rgb(24, 20, 127); /* oklch */ color: oklch(29.9% 0.168 271.4);
Tailwind
colors: {
custom: {
50: '#6a55a5',
500: '#18147f',
950: '#000000',
},
}SCSS
$custom: #18147f; $custom-light: #6a55a5; $custom-dark: #000000;
JSON
{
"hex": "#18147f",
"rgb": {
"r": 24,
"g": 20,
"b": 127
},
"hsl": {
"h": 242.243,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.29869,
"c": 0.16772,
"h": 271.4
},
"luminance": 0.02227
}Semantic roles & 50–950 ramp
primary
#18147F
secondary
#B0B43B
accent
#EF38E9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F