#18171C color

#18171C rgb(24, 23, 28)
Shades of black

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
RGBrgb(24, 23, 28)
RGB percentrgb(9.4%, 9%, 11%)
HSLhsl(252, 10%, 10%)
HSV / HSBhsv(252, 18%, 11%)
CMYKcmyk(14%, 18%, 0%, 89%)
CIE LABlab(8.05, 1.84, -3.33)
CIE LCHlch(8.05, 3.81, 298.92)
CIE XYZxyz(0.893, 0.891, 1.223)
Decimal1578780
Short hexNone (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 #18171CRatioAAAAAAA large
Sample text1.18:1FailFailFail
Sample text17.82:1PassPassPass
#18171C as text onRatioAAAAAAA large
Sample text17.82:1PassPassPass
Sample text1.18:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.