#31342D color
The hex color #31342D is a dark gray.
In the RGB color model it is made of 19.2% red, 20.4% green and 17.6% blue (49, 52, 45).
Its hue angle is 86°, with 7% saturation and 19% lightness. For print, the CMYK equivalent is 6% cyan, 0% magenta, 13% yellow and 80% black.
The closest named color is Marshland (#2B2E26), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.65:1).
#31342D color codes
| HEX | #31342D | |
|---|---|---|
| RGB | rgb(49, 52, 45) | |
| RGB percent | rgb(19.2%, 20.4%, 17.6%) | |
| HSL | hsl(86, 7%, 19%) | |
| HSV / HSB | hsv(86, 13%, 20%) | |
| CMYK | cmyk(6%, 0%, 13%, 80%) | |
| CIE LAB | lab(21.2, -2.9, 3.99) | |
| CIE LCH | lch(21.2, 4.93, 126) | |
| CIE XYZ | xyz(2.968, 3.298, 2.962) | |
| Decimal | 3224621 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31342D, 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 #31342D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.66:1 | Fail | Fail | Fail |
| Sample text | 12.65:1 | Pass | Pass | Pass |
| #31342D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.65:1 | Pass | Pass | Pass |
| Sample text | 1.66: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 #31342D looks to people with the most common types of color vision deficiency.
#35332dProtanopia
no red cones#34332dDeuteranopia
no green cones#313332Tritanopia
no blue cones#333333Achromatopsia
no color vision
CSS examples
.background { background-color: #31342d; }
.text { color: #31342d; }
.border { border: 2px solid #31342d; }
.transparent { background-color: rgb(49 52 45 / 50%); }
.gradient { background: linear-gradient(to right, #31342d, #2d342d); }
Similar colors
#2b2e26Marshland#353935Onyx#2b322dTerminal Black#313330Oil#3b3c36Black Olive#262926Bitter Liquorice#2f3434Phantom Ship#353838Wet Concrete
Questions
- What color is #31342D?
- #31342D is a dark gray, closest to the named color Marshland. It belongs to the gray family of colors.
- What is the RGB value of #31342D?
- The RGB value is 49, 52, 45: 49 red, 52 green and 45 blue on a 0 to 255 scale.
- What is the complementary color of #31342D?
- The complementary color is #302D34, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31342D?
- White text. Black text has a contrast ratio of 1.66:1 and white text 12.65:1. WCAG asks for at least 4.5:1 for normal text.