#31322B color
The hex color #31322B is a dark gray.
In the RGB color model it is made of 19.2% red, 19.6% green and 16.9% blue (49, 50, 43).
Its hue angle is 69°, with 8% saturation and 18% lightness. For print, the CMYK equivalent is 2% cyan, 0% magenta, 14% yellow and 80% black.
The closest named color is Marshland (#2B2E26), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.95:1).
#31322B color codes
| HEX | #31322B | |
|---|---|---|
| RGB | rgb(49, 50, 43) | |
| RGB percent | rgb(19.2%, 19.6%, 16.9%) | |
| HSL | hsl(69, 8%, 18%) | |
| HSV / HSB | hsv(69, 14%, 20%) | |
| CMYK | cmyk(2%, 0%, 14%, 80%) | |
| CIE LAB | lab(20.47, -2, 4.31) | |
| CIE LCH | lch(20.47, 4.75, 114.9) | |
| CIE XYZ | xyz(2.843, 3.109, 2.735) | |
| Decimal | 3224107 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31322B, 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 #31322B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.62:1 | Fail | Fail | Fail |
| Sample text | 12.95:1 | Pass | Pass | Pass |
| #31322B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.95:1 | Pass | Pass | Pass |
| Sample text | 1.62: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 #31322B looks to people with the most common types of color vision deficiency.
#33312bProtanopia
no red cones#33312bDeuteranopia
no green cones#323130Tritanopia
no blue cones#313131Achromatopsia
no color vision
CSS examples
.background { background-color: #31322b; }
.text { color: #31322b; }
.border { border: 2px solid #31322b; }
.transparent { background-color: rgb(49 50 43 / 50%); }
.gradient { background: linear-gradient(to right, #31322b, #2e322b); }
Similar colors
#2b2e26Marshland#313330Oil#353935Onyx#3b3c36Black Olive#2b322dTerminal Black#262926Bitter Liquorice#2f3434Phantom Ship#333333Carbon
Questions
- What color is #31322B?
- #31322B is a dark gray, closest to the named color Marshland. It belongs to the gray family of colors.
- What is the RGB value of #31322B?
- The RGB value is 49, 50, 43: 49 red, 50 green and 43 blue on a 0 to 255 scale.
- What is the complementary color of #31322B?
- The complementary color is #2C2B32, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31322B?
- White text. Black text has a contrast ratio of 1.62:1 and white text 12.95:1. WCAG asks for at least 4.5:1 for normal text.