#18178C#18178C
#18178C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.181 H 270.1°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #18178C |
|---|---|
| RGB | rgb(24, 23, 140) |
| HSL | hsl(241, 72%, 32%) |
| HSV | hsv(241, 84%, 55%) |
| CMYK | cmyk(82.9%, 83.6%, 0%, 45.1%) |
| CIE-LAB | lab(18.80, 42.40, -62.54) |
| CIE-LCH | lch(18.80, 75.56, 304.14°) |
| OKLab | oklab(31.85% 0.0004 -0.181) |
| OKLCH | oklch(31.85% 0.181 270.1) |
| XYZ | xyz(5.4151, 2.6998, 25.0416) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.09
Darkblue
#00008B
ΔE00 3.62
Cobalt Blue
#030AA7
ΔE00 3.93
Navy
#000080
ΔE00 4.27
Midnight Blue
#191970
ΔE00 4.45
Royal Blue (survey)
#0504AA
ΔE00 4.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18178C #8B8C17
analogous
#17518C #18178C #53178C
triadic
#18178C #8C1817 #178C18
tetradic
#18178C #8C1751 #8B8C17 #178C53
square
#18178C #8C1751 #8B8C17 #178C53
split-complementary
#18178C #8C5317 #518C17
monochromatic
#060623 #0F0E57 #18178C #2120C1 #3F3EDF
Accessibility & contrast
On white
13.64
#18178C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#18178C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18178C
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18178C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18178C | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00288A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18178c; /* rgb */ color: rgb(24, 23, 140); /* oklch */ color: oklch(31.8% 0.181 270.1);
Tailwind
colors: {
custom: {
50: '#6d57af',
500: '#18178c',
950: '#000000',
},
}SCSS
$custom: #18178c; $custom-light: #6d57af; $custom-dark: #000000;
JSON
{
"hex": "#18178c",
"rgb": {
"r": 24,
"g": 23,
"b": 140
},
"hsl": {
"h": 240.513,
"s": 71.779,
"l": 31.961
},
"oklch": {
"l": 0.31847,
"c": 0.18105,
"h": 270.1
},
"luminance": 0.027
}Semantic roles & 50–950 ramp
primary
#18178C
secondary
#BEBF3F
accent
#EF39ED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880