#18147B#18147B
#18147B is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.163 H 271.8°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).
Color values
| HEX | #18147B |
|---|---|
| RGB | rgb(24, 20, 123) |
| HSL | hsl(242, 72%, 28%) |
| HSV | hsv(242, 84%, 48%) |
| CMYK | cmyk(80.5%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(16.13, 38.31, -56.22) |
| CIE-LCH | lch(16.13, 68.03, 304.27°) |
| OKLab | oklab(29.37% 0.0052 -0.1627) |
| OKLCH | oklch(29.37% 0.163 271.8) |
| XYZ | xyz(4.2008, 2.1241, 18.9236) |
| Luminance | 0.0213 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.36
Dark Royal Blue
#02066F
ΔE00 3.27
Royal
#0C1793
ΔE00 3.52
Deep Blue
#040273
ΔE00 3.52
Navy
#000080
ΔE00 3.55
Darkblue
#00008B
ΔE00 3.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18147B #777B14
analogous
#14437B #18147B #4B147B
triadic
#18147B #7B1814 #147B18
tetradic
#18147B #7B1443 #777B14 #147B4B
square
#18147B #7B1443 #777B14 #147B4B
split-complementary
#18147B #7B4B14 #437B14
monochromatic
#05041A #0E0B46 #18147B #221DB0 #332DDD
Accessibility & contrast
On white
14.74
#18147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#18147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18147B
14.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18147B | 1.00 | 14.74 | 1.43 | 14.74 |
| #FFFFFF | 14.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002379
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #18147b; /* rgb */ color: rgb(24, 20, 123); /* oklch */ color: oklch(29.4% 0.163 271.8);
Tailwind
colors: {
custom: {
50: '#6954a2',
500: '#18147b',
950: '#000000',
},
}SCSS
$custom: #18147b; $custom-light: #6954a2; $custom-dark: #000000;
JSON
{
"hex": "#18147b",
"rgb": {
"r": 24,
"g": 20,
"b": 123
},
"hsl": {
"h": 242.33,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.29371,
"c": 0.1628,
"h": 271.8
},
"luminance": 0.02125
}Semantic roles & 50–950 ramp
primary
#18147B
secondary
#ACB13A
accent
#EF39E8
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F