#18171C color
The hex color #18171C is a very dark, grayish violet.
In the RGB color model it is made of 9.4% red, 9% green and 11% blue (24, 23, 28).
Its hue angle is 252°, with 10% saturation and 10% lightness. For print, the CMYK equivalent is 14% cyan, 18% magenta, 0% yellow and 89% black.
The closest named color is Eigengrau (#16161D), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.82:1).
#18171C color codes
| HEX | #18171C | |
|---|---|---|
| RGB | rgb(24, 23, 28) | |
| RGB percent | rgb(9.4%, 9%, 11%) | |
| HSL | hsl(252, 10%, 10%) | |
| HSV / HSB | hsv(252, 18%, 11%) | |
| CMYK | cmyk(14%, 18%, 0%, 89%) | |
| CIE LAB | lab(8.05, 1.84, -3.33) | |
| CIE LCH | lch(8.05, 3.81, 298.92) | |
| CIE XYZ | xyz(0.893, 0.891, 1.223) | |
| Decimal | 1578780 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #18171C, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #18171C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.18:1 | Fail | Fail | Fail |
| Sample text | 17.82:1 | Pass | Pass | Pass |
| #18171C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.82:1 | Pass | Pass | Pass |
| Sample text | 1.18:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #18171C looks to people with the most common types of color vision deficiency.
#16181cProtanopia
no red cones#16181cDeuteranopia
no green cones#171819Tritanopia
no blue cones#181818Achromatopsia
no color vision
CSS examples
.background { background-color: #18171c; }
.text { color: #18171c; }
.border { border: 2px solid #18171c; }
.transparent { background-color: rgb(24 23 28 / 50%); }
.gradient { background: linear-gradient(to right, #18171c, #1b171c); }
Similar colors
#16161dEigengrau#17171aPiano Black#16141cBack in Black#1a161dViolet Void#151517Dark Void#1e1e21Inkwell Inception#201b20Night Demons#0b0c14Midnight Oil
Closest common color name: Midnight Black.
Questions
- What color is #18171C?
- #18171C is a very dark, grayish violet, closest to the named color Eigengrau. It belongs to the black family of colors.
- What is the RGB value of #18171C?
- The RGB value is 24, 23, 28: 24 red, 23 green and 28 blue on a 0 to 255 scale.
- What is the complementary color of #18171C?
- The complementary color is #1B1C17, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #18171C?
- White text. Black text has a contrast ratio of 1.18:1 and white text 17.82:1. WCAG asks for at least 4.5:1 for normal text.