#18151F#18151F
#18151F is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.4% C 0.020 H 298.4°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).
Color values
| HEX | #18151F |
|---|---|
| RGB | rgb(24, 21, 31) |
| HSL | hsl(258, 19%, 10%) |
| HSV | hsv(258, 32%, 12%) |
| CMYK | cmyk(22.6%, 32.3%, 0%, 87.8%) |
| CIE-LAB | lab(7.49, 4.21, -6.45) |
| CIE-LCH | lch(7.49, 7.71, 303.13°) |
| OKLab | oklab(20.41% 0.0096 -0.0177) |
| OKLCH | oklch(20.41% 0.02 298.4) |
| XYZ | xyz(0.8921, 0.8294, 1.4092) |
| Luminance | 0.0083 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark
#1B2431
ΔE00 7.71
Black
#000000
ΔE00 8.72
Almost Black
#070D0D
ΔE00 9.43
Very Dark Brown
#1D0200
ΔE00 10.76
Navy Blue
#1B2A4A
ΔE00 12.02
Midnight
#03012D
ΔE00 12.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#18151F #1C1F15
analogous
#15171F #18151F #1D151F
triadic
#18151F #1F1815 #151F18
tetradic
#18151F #1F1517 #1C1F15 #151F1D
square
#18151F #1F1517 #1C1F15 #151F1D
split-complementary
#18151F #1F1D15 #171F15
monochromatic
#0E0C12 #0E0C12 #18151F #342E43 #504668
Accessibility & contrast
On white
18.01
#18151F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.17
#18151F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #18151F
18.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##18151F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##18151F | 1.00 | 18.01 | 1.17 | 18.01 |
| #FFFFFF | 18.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 18.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#13171F
Deuteranopia (green-blind)
#13161F
Tritanopia (blue-blind)
#171618
Achromatopsia (no color)
#171717
Design tokens & code
CSS
--color: #18151f; /* rgb */ color: rgb(24, 21, 31); /* oklch */ color: oklch(20.4% 0.020 298.4);
Tailwind
colors: {
custom: {
50: '#54525a',
500: '#18151f',
950: '#000000',
},
}SCSS
$custom: #18151f; $custom-light: #54525a; $custom-dark: #000000;
JSON
{
"hex": "#18151f",
"rgb": {
"r": 24,
"g": 21,
"b": 31
},
"hsl": {
"h": 258,
"s": 19.231,
"l": 10.196
},
"oklch": {
"l": 0.20405,
"c": 0.0201,
"h": 298.4
},
"luminance": 0.00829
}Semantic roles & 50–950 ramp
primary
#18151F
secondary
#4C523E
accent
#BC6CA4
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878