#18147D#18147D
#18147D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.165 H 271.6°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).
Color values
| HEX | #18147D |
|---|---|
| RGB | rgb(24, 20, 125) |
| HSL | hsl(242, 72%, 28%) |
| HSV | hsv(242, 84%, 49%) |
| CMYK | cmyk(80.8%, 84%, 0%, 51%) |
| CIE-LAB | lab(16.38, 38.97, -57.08) |
| CIE-LCH | lch(16.38, 69.12, 304.32°) |
| OKLab | oklab(29.62% 0.0047 -0.1652) |
| OKLCH | oklch(29.62% 0.165 271.6) |
| XYZ | xyz(4.3273, 2.1747, 19.5898) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Royal
#0C1793
ΔE00 3.22
Dark Royal Blue
#02066F
ΔE00 3.43
Navy
#000080
ΔE00 3.47
Deep Blue
#040273
ΔE00 3.60
Darkblue
#00008B
ΔE00 3.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18147D #797D14
analogous
#14447D #18147D #4C147D
triadic
#18147D #7D1814 #147D18
tetradic
#18147D #7D1444 #797D14 #147D4C
square
#18147D #7D1444 #797D14 #147D4C
split-complementary
#18147D #7D4C14 #447D14
monochromatic
#05041A #0E0C48 #18147D #221CB2 #352EDE
Accessibility & contrast
On white
14.63
#18147D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#18147D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18147D
14.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18147D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18147D | 1.00 | 14.63 | 1.44 | 14.63 |
| #FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00237B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #18147d; /* rgb */ color: rgb(24, 20, 125); /* oklch */ color: oklch(29.6% 0.165 271.6);
Tailwind
colors: {
custom: {
50: '#6a55a4',
500: '#18147d',
950: '#000000',
},
}SCSS
$custom: #18147d; $custom-light: #6a55a4; $custom-dark: #000000;
JSON
{
"hex": "#18147d",
"rgb": {
"r": 24,
"g": 20,
"b": 125
},
"hsl": {
"h": 242.286,
"s": 72.414,
"l": 28.431
},
"oklch": {
"l": 0.29619,
"c": 0.16527,
"h": 271.6
},
"luminance": 0.02175
}Semantic roles & 50–950 ramp
primary
#18147D
secondary
#AEB23A
accent
#EF39E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F