#312F1F color
The hex color #312F1F is a very dark, grayish yellow.
In the RGB color model it is made of 19.2% red, 18.4% green and 12.2% blue (49, 47, 31).
Its hue angle is 53°, with 23% saturation and 16% lightness. For print, the CMYK equivalent is 0% cyan, 4% magenta, 37% yellow and 81% black.
The closest named color is Marshland (#2B2E26), a difference of 4.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.49:1).
#312F1F color codes
| HEX | #312F1F | |
|---|---|---|
| RGB | rgb(49, 47, 31) | |
| RGB percent | rgb(19.2%, 18.4%, 12.2%) | |
| HSL | hsl(53, 23%, 16%) | |
| HSV / HSB | hsv(53, 37%, 19%) | |
| CMYK | cmyk(0%, 4%, 37%, 81%) | |
| CIE LAB | lab(19.16, -2.26, 10.63) | |
| CIE LCH | lch(19.16, 10.87, 101.99) | |
| CIE XYZ | xyz(2.53, 2.785, 1.7) | |
| Decimal | 3223327 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312F1F, 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 #312F1F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.56:1 | Fail | Fail | Fail |
| Sample text | 13.49:1 | Pass | Pass | Pass |
| #312F1F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.49:1 | Pass | Pass | Pass |
| Sample text | 1.56: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 #312F1F looks to people with the most common types of color vision deficiency.
#322e1eProtanopia
no red cones#332f20Deuteranopia
no green cones#342d2bTritanopia
no blue cones#2e2e2eAchromatopsia
no color vision
CSS examples
.background { background-color: #312f1f; }
.text { color: #312f1f; }
.border { border: 2px solid #312f1f; }
.transparent { background-color: rgb(49 47 31 / 50%); }
.gradient { background: linear-gradient(to right, #312f1f, #2a311f); }
Similar colors
#2b2e26Marshland#393227Creole#3b3c36Black Olive#1e231cUnderworld#313330Oil#2b322dTerminal Black#473e23Madras#262926Bitter Liquorice
Closest common color name: Onyx.
Questions
- What color is #312F1F?
- #312F1F is a very dark, grayish yellow, closest to the named color Marshland. It belongs to the black family of colors.
- What is the RGB value of #312F1F?
- The RGB value is 49, 47, 31: 49 red, 47 green and 31 blue on a 0 to 255 scale.
- What is the complementary color of #312F1F?
- The complementary color is #1F2131, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312F1F?
- White text. Black text has a contrast ratio of 1.56:1 and white text 13.49:1. WCAG asks for at least 4.5:1 for normal text.