#18188C#18188C
#18188C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.180 H 270.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #18188C |
|---|---|
| RGB | rgb(24, 24, 140) |
| HSL | hsl(240, 71%, 32%) |
| HSV | hsv(240, 83%, 55%) |
| CMYK | cmyk(82.9%, 82.9%, 0%, 45.1%) |
| CIE-LAB | lab(18.97, 41.89, -62.25) |
| CIE-LCH | lch(18.97, 75.03, 303.94°) |
| OKLab | oklab(31.97% 0.0002 -0.1802) |
| OKLCH | oklch(31.97% 0.18 270.1) |
| XYZ | xyz(5.4353, 2.7403, 25.0483) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.10
Darkblue
#00008B
ΔE00 3.82
Cobalt Blue
#030AA7
ΔE00 4.02
Midnight Blue
#191970
ΔE00 4.40
Navy
#000080
ΔE00 4.45
Royal Blue (survey)
#0504AA
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18188C #8C8C18
analogous
#18528C #18188C #52188C
triadic
#18188C #8C1818 #188C18
tetradic
#18188C #8C1852 #8C8C18 #188C52
square
#18188C #8C1852 #8C8C18 #188C52
split-complementary
#18188C #8C5218 #528C18
monochromatic
#060624 #0F0F58 #18188C #2121C0 #4040DE
Accessibility & contrast
On white
13.56
#18188C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#18188C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18188C
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18188C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18188C | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 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: #18188c; /* rgb */ color: rgb(24, 24, 140); /* oklch */ color: oklch(32.0% 0.180 270.1);
Tailwind
colors: {
custom: {
50: '#6d58af',
500: '#18188c',
950: '#000000',
},
}SCSS
$custom: #18188c; $custom-light: #6d58af; $custom-dark: #000000;
JSON
{
"hex": "#18188c",
"rgb": {
"r": 24,
"g": 24,
"b": 140
},
"hsl": {
"h": 240,
"s": 70.732,
"l": 32.157
},
"oklch": {
"l": 0.31968,
"c": 0.18024,
"h": 270.1
},
"luminance": 0.02741
}Semantic roles & 50–950 ramp
primary
#18188C
secondary
#BFBF41
accent
#ED3AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880