#18158C#18158C
#18158C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.183 H 270.3°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).
Color values
| HEX | #18158C |
|---|---|
| RGB | rgb(24, 21, 140) |
| HSL | hsl(242, 74%, 32%) |
| HSV | hsv(242, 85%, 55%) |
| CMYK | cmyk(82.9%, 85%, 0%, 45.1%) |
| CIE-LAB | lab(18.47, 43.38, -63.09) |
| CIE-LCH | lch(18.47, 76.56, 304.51°) |
| OKLab | oklab(31.62% 0.0009 -0.1826) |
| OKLCH | oklch(31.62% 0.183 270.3) |
| XYZ | xyz(5.3769, 2.6233, 25.0288) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.18
Darkblue
#00008B
ΔE00 3.24
Cobalt Blue
#030AA7
ΔE00 3.78
Navy
#000080
ΔE00 3.93
Royal Blue (survey)
#0504AA
ΔE00 4.30
Midnight Blue
#191970
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18158C #898C15
analogous
#154E8C #18158C #54158C
triadic
#18158C #8C1815 #158C18
tetradic
#18158C #8C154E #898C15 #158C54
square
#18158C #8C154E #898C15 #158C54
split-complementary
#18158C #8C5415 #4E8C15
monochromatic
#060522 #0F0D57 #18158C #211DC1 #3E3AE1
Accessibility & contrast
On white
13.77
#18158C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#18158C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18158C
13.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18158C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18158C | 1.00 | 13.77 | 1.52 | 13.77 |
| #FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #18158c; /* rgb */ color: rgb(24, 21, 140); /* oklch */ color: oklch(31.6% 0.183 270.3);
Tailwind
colors: {
custom: {
50: '#6e56af',
500: '#18158c',
950: '#000000',
},
}SCSS
$custom: #18158c; $custom-light: #6e56af; $custom-dark: #000000;
JSON
{
"hex": "#18158c",
"rgb": {
"r": 24,
"g": 21,
"b": 140
},
"hsl": {
"h": 241.513,
"s": 73.913,
"l": 31.569
},
"oklch": {
"l": 0.31617,
"c": 0.1826,
"h": 270.3
},
"luminance": 0.02624
}Semantic roles & 50–950 ramp
primary
#18158C
secondary
#BDC03D
accent
#F137EC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880