#18178E#18178E
#18178E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.183 H 270.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #18178E |
|---|---|
| RGB | rgb(24, 23, 142) |
| HSL | hsl(241, 72%, 32%) |
| HSV | hsv(241, 84%, 56%) |
| CMYK | cmyk(83.1%, 83.8%, 0%, 44.3%) |
| CIE-LAB | lab(19.05, 43.05, -63.37) |
| CIE-LCH | lch(19.05, 76.61, 304.19°) |
| OKLab | oklab(32.1% 0 -0.1834) |
| OKLCH | oklch(32.1% 0.183 270) |
| XYZ | xyz(5.5639, 2.7593, 25.8253) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.87
Darkblue
#00008B
ΔE00 3.64
Cobalt Blue
#030AA7
ΔE00 3.67
Royal Blue (survey)
#0504AA
ΔE00 4.23
Navy
#000080
ΔE00 4.39
Midnight Blue
#191970
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18178E #8D8E17
analogous
#17528E #18178E #53178E
triadic
#18178E #8E1817 #178E18
tetradic
#18178E #8E1752 #8D8E17 #178E53
square
#18178E #8E1752 #8D8E17 #178E53
split-complementary
#18178E #8E5317 #528E17
monochromatic
#060625 #0F0E59 #18178E #2120C3 #413FE0
Accessibility & contrast
On white
13.53
#18178E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#18178E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18178E
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18178E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18178E | 1.00 | 13.53 | 1.55 | 13.53 |
| #FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18178e; /* rgb */ color: rgb(24, 23, 142); /* oklch */ color: oklch(32.1% 0.183 270.0);
Tailwind
colors: {
custom: {
50: '#6e58b0',
500: '#18178e',
950: '#000000',
},
}SCSS
$custom: #18178e; $custom-light: #6e58b0; $custom-dark: #000000;
JSON
{
"hex": "#18178e",
"rgb": {
"r": 24,
"g": 23,
"b": 142
},
"hsl": {
"h": 240.504,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.32096,
"c": 0.18344,
"h": 270
},
"luminance": 0.0276
}Semantic roles & 50–950 ramp
primary
#18178E
secondary
#BFC040
accent
#EF39ED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880