#18158F#18158F
#18158F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.186 H 270.0°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).
Color values
| HEX | #18158F |
|---|---|
| RGB | rgb(24, 21, 143) |
| HSL | hsl(241, 74%, 32%) |
| HSV | hsv(241, 85%, 56%) |
| CMYK | cmyk(83.2%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(18.86, 44.33, -64.32) |
| CIE-LCH | lch(18.86, 78.11, 304.58°) |
| OKLab | oklab(32% 0.0002 -0.1861) |
| OKLCH | oklch(32% 0.186 270) |
| XYZ | xyz(5.6011, 2.7130, 26.2097) |
| Luminance | 0.0271 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 0.90
Darkblue
#00008B
ΔE00 3.30
Cobalt Blue
#030AA7
ΔE00 3.38
Royal Blue (survey)
#0504AA
ΔE00 3.92
Navy
#000080
ΔE00 4.14
Indigo (survey)
#380282
ΔE00 4.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18158F #8C8F15
analogous
#154F8F #18158F #55158F
triadic
#18158F #8F1815 #158F18
tetradic
#18158F #8F154F #8C8F15 #158F55
square
#18158F #8F154F #8C8F15 #158F55
split-complementary
#18158F #8F5515 #4F8F15
monochromatic
#060524 #0F0D5A #18158F #211DC4 #403CE2
Accessibility & contrast
On white
13.61
#18158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#18158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18158F
13.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18158F | 1.00 | 13.61 | 1.54 | 13.61 |
| #FFFFFF | 13.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #18158f; /* rgb */ color: rgb(24, 21, 143); /* oklch */ color: oklch(32.0% 0.186 270.0);
Tailwind
colors: {
custom: {
50: '#6e57b1',
500: '#18158f',
950: '#000000',
},
}SCSS
$custom: #18158f; $custom-light: #6e57b1; $custom-dark: #000000;
JSON
{
"hex": "#18158f",
"rgb": {
"r": 24,
"g": 21,
"b": 143
},
"hsl": {
"h": 241.475,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.31996,
"c": 0.18615,
"h": 270
},
"luminance": 0.02714
}Semantic roles & 50–950 ramp
primary
#18158F
secondary
#BFC23E
accent
#F137EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880