#1F1B1F color
The hex color #1F1B1F is a dark gray.
In the RGB color model it is made of 12.2% red, 10.6% green and 12.2% blue (31, 27, 31).
Its hue angle is 300°, with 7% saturation and 11% lightness. For print, the CMYK equivalent is 0% cyan, 13% magenta, 0% yellow and 88% black.
The closest named color is Night Demons (#201B20), a difference of 1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 17.01:1).
#1F1B1F color codes
| HEX | #1F1B1F | |
|---|---|---|
| RGB | rgb(31, 27, 31) | |
| RGB percent | rgb(12.2%, 10.6%, 12.2%) | |
| HSL | hsl(300, 7%, 11%) | |
| HSV / HSB | hsv(300, 13%, 12%) | |
| CMYK | cmyk(0%, 13%, 0%, 88%) | |
| CIE LAB | lab(10.37, 2.92, -2.05) | |
| CIE LCH | lch(10.37, 3.57, 324.96) | |
| CIE XYZ | xyz(1.204, 1.174, 1.459) | |
| Decimal | 2038559 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1F1B1F, 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 #1F1B1F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.23:1 | Fail | Fail | Fail |
| Sample text | 17.01:1 | Pass | Pass | Pass |
| #1F1B1F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.01:1 | Pass | Pass | Pass |
| Sample text | 1.23: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 #1F1B1F looks to people with the most common types of color vision deficiency.
#1b1c1fProtanopia
no red cones#1c1c1fDeuteranopia
no green cones#1f1b1cTritanopia
no blue cones#1c1c1cAchromatopsia
no color vision
CSS examples
.background { background-color: #1f1b1f; }
.text { color: #1f1b1f; }
.border { border: 2px solid #1f1b1f; }
.transparent { background-color: rgb(31 27 31 / 50%); }
.gradient { background: linear-gradient(to right, #1f1b1f, #1f1b1d); }
Similar colors
#201b20Night Demons#252024Ink Black#241f20Velvet Black#211e1fUmbra#1a161dViolet Void#1e1e21Inkwell Inception#17171aPiano Black#27252aDarth Vader
Closest common color name: Licorice.
Questions
- What color is #1F1B1F?
- #1F1B1F is a dark gray, closest to the named color Night Demons. It belongs to the black family of colors.
- What is the RGB value of #1F1B1F?
- The RGB value is 31, 27, 31: 31 red, 27 green and 31 blue on a 0 to 255 scale.
- What is the complementary color of #1F1B1F?
- The complementary color is #1B1F1B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1F1B1F?
- White text. Black text has a contrast ratio of 1.23:1 and white text 17.01:1. WCAG asks for at least 4.5:1 for normal text.