#181212 color
The hex color #181212 is a very dark, grayish red.
In the RGB color model it is made of 9.4% red, 7.1% green and 7.1% blue (24, 18, 18).
Its hue angle is 0°, with 14% saturation and 8% lightness. For print, the CMYK equivalent is 0% cyan, 25% magenta, 25% yellow and 91% black.
The closest named color is Scandinavian Liquorice (#1A1110), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 18.52:1).
#181212 color codes
| HEX | #181212 | |
|---|---|---|
| RGB | rgb(24, 18, 18) | |
| RGB percent | rgb(9.4%, 7.1%, 7.1%) | |
| HSL | hsl(0, 14%, 8%) | |
| HSV / HSB | hsv(0, 25%, 9%) | |
| CMYK | cmyk(0%, 25%, 25%, 91%) | |
| CIE LAB | lab(6.06, 2.66, 0.94) | |
| CIE LCH | lch(6.06, 2.82, 19.41) | |
| CIE XYZ | xyz(0.702, 0.67, 0.665) | |
| Decimal | 1577490 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #181212, 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 #181212 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.13:1 | Fail | Fail | Fail |
| Sample text | 18.52:1 | Pass | Pass | Pass |
| #181212 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 18.52:1 | Pass | Pass | Pass |
| Sample text | 1.13: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 #181212 looks to people with the most common types of color vision deficiency.
#131312Protanopia
no red cones#141412Deuteranopia
no green cones#191112Tritanopia
no blue cones#131313Achromatopsia
no color vision
CSS examples
.background { background-color: #181212; }
.text { color: #181212; }
.border { border: 2px solid #181212; }
.transparent { background-color: rgb(24 18 18 / 50%); }
.gradient { background: linear-gradient(to right, #181212, #181512); }
Similar colors
#1a1110Scandinavian Liquorice#1b1212Licorice#0f0707Knight Rider#130a06Asphalt#0f0d0dBlack Sheep#130d07Balsamico#0e0702Blackout#0a0502Liquorice
Questions
- What color is #181212?
- #181212 is a very dark, grayish red, closest to the named color Scandinavian Liquorice. It belongs to the black family of colors.
- What is the RGB value of #181212?
- The RGB value is 24, 18, 18: 24 red, 18 green and 18 blue on a 0 to 255 scale.
- What is the complementary color of #181212?
- The complementary color is #121818, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #181212?
- White text. Black text has a contrast ratio of 1.13:1 and white text 18.52:1. WCAG asks for at least 4.5:1 for normal text.