#181318 color
The hex color #181318 is a very dark, grayish magenta.
In the RGB color model it is made of 9.4% red, 7.5% green and 9.4% blue (24, 19, 24).
Its hue angle is 300°, with 12% saturation and 8% lightness. For print, the CMYK equivalent is 0% cyan, 21% magenta, 0% yellow and 91% black.
The closest named color is Violet Void (#1A161D), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 18.34:1).
#181318 color codes
| HEX | #181318 | |
|---|---|---|
| RGB | rgb(24, 19, 24) | |
| RGB percent | rgb(9.4%, 7.5%, 9.4%) | |
| HSL | hsl(300, 12%, 8%) | |
| HSV / HSB | hsv(300, 21%, 9%) | |
| CMYK | cmyk(0%, 21%, 0%, 91%) | |
| CIE LAB | lab(6.56, 3.46, -2.47) | |
| CIE LCH | lch(6.56, 4.25, 324.44) | |
| CIE XYZ | xyz(0.774, 0.726, 0.963) | |
| Decimal | 1577752 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #181318, 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 #181318 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.15:1 | Fail | Fail | Fail |
| Sample text | 18.34:1 | Pass | Pass | Pass |
| #181318 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.34:1 | Pass | Pass | Pass |
| Sample text | 1.15: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 #181318 looks to people with the most common types of color vision deficiency.
#131418Protanopia
no red cones#141518Deuteranopia
no green cones#181315Tritanopia
no blue cones#151515Achromatopsia
no color vision
CSS examples
.background { background-color: #181318; }
.text { color: #181318; }
.border { border: 2px solid #181318; }
.transparent { background-color: rgb(24 19 24 / 50%); }
.gradient { background: linear-gradient(to right, #181318, #181316); }
Similar colors
#1a161dViolet Void#201b20Night Demons#16141cBack in Black#16161dEigengrau#150811Noir Fiction#1f1518Bats Cloak#17171aPiano Black#1b1212Licorice
Questions
- What color is #181318?
- #181318 is a very dark, grayish magenta, closest to the named color Violet Void. It belongs to the black family of colors.
- What is the RGB value of #181318?
- The RGB value is 24, 19, 24: 24 red, 19 green and 24 blue on a 0 to 255 scale.
- What is the complementary color of #181318?
- The complementary color is #131813, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #181318?
- White text. Black text has a contrast ratio of 1.15:1 and white text 18.34:1. WCAG asks for at least 4.5:1 for normal text.