#18181B color
The hex color #18181B is a dark gray.
In the RGB color model it is made of 9.4% red, 9.4% green and 10.6% blue (24, 24, 27).
Its hue angle is 240°, with 6% saturation and 10% lightness. For print, the CMYK equivalent is 11% cyan, 11% magenta, 0% yellow and 89% black.
The closest named color is Piano Black (#17171A), a difference of 0.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.72:1).
#18181B color codes
| HEX | #18181B | |
|---|---|---|
| RGB | rgb(24, 24, 27) | |
| RGB percent | rgb(9.4%, 9.4%, 10.6%) | |
| HSL | hsl(240, 6%, 10%) | |
| HSV / HSB | hsv(240, 11%, 11%) | |
| CMYK | cmyk(11%, 11%, 0%, 89%) | |
| CIE LAB | lab(8.36, 0.81, -2.1) | |
| CIE LCH | lch(8.36, 2.25, 290.97) | |
| CIE XYZ | xyz(0.901, 0.927, 1.168) | |
| Decimal | 1579035 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #18181B, 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 #18181B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.19:1 | Fail | Fail | Fail |
| Sample text | 17.72:1 | Pass | Pass | Pass |
| #18181B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.72:1 | Pass | Pass | Pass |
| Sample text | 1.19: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 #18181B looks to people with the most common types of color vision deficiency.
#17181bProtanopia
no red cones#17181bDeuteranopia
no green cones#171819Tritanopia
no blue cones#181818Achromatopsia
no color vision
CSS examples
.background { background-color: #18181b; }
.text { color: #18181b; }
.border { border: 2px solid #18181b; }
.transparent { background-color: rgb(24 24 27 / 50%); }
.gradient { background: linear-gradient(to right, #18181b, #1a181b); }
Similar colors
#17171aPiano Black#151517Dark Void#1e1e21Inkwell Inception#161718Dark Moon#1c1e21Satin Deep Black#151515Matt Black#141414Sooty#0f1012Ruined Smores
Closest common color name: Midnight Black.
Questions
- What color is #18181B?
- #18181B is a dark gray, closest to the named color Piano Black. It belongs to the black family of colors.
- What is the RGB value of #18181B?
- The RGB value is 24, 24, 27: 24 red, 24 green and 27 blue on a 0 to 255 scale.
- What is the complementary color of #18181B?
- The complementary color is #1B1B18, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #18181B?
- White text. Black text has a contrast ratio of 1.19:1 and white text 17.72:1. WCAG asks for at least 4.5:1 for normal text.