#313228 color
The hex color #313228 is a very dark, grayish yellow.
In the RGB color model it is made of 19.2% red, 19.6% green and 15.7% blue (49, 50, 40).
Its hue angle is 66°, with 11% saturation and 18% lightness. For print, the CMYK equivalent is 2% cyan, 0% magenta, 20% 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.98:1).
#313228 color codes
| HEX | #313228 | |
|---|---|---|
| RGB | rgb(49, 50, 40) | |
| RGB percent | rgb(19.2%, 19.6%, 15.7%) | |
| HSL | hsl(66, 11%, 18%) | |
| HSV / HSB | hsv(66, 20%, 20%) | |
| CMYK | cmyk(2%, 0%, 20%, 80%) | |
| CIE LAB | lab(20.39, -2.61, 6.23) | |
| CIE LCH | lch(20.39, 6.76, 112.75) | |
| CIE XYZ | xyz(2.79, 3.087, 2.456) | |
| Decimal | 3224104 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313228, 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 #313228 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.62:1 | Fail | Fail | Fail |
| Sample text | 12.98:1 | Pass | Pass | Pass |
| #313228 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.98: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 #313228 looks to people with the most common types of color vision deficiency.
#343127Protanopia
no red cones#343128Deuteranopia
no green cones#32312fTritanopia
no blue cones#313131Achromatopsia
no color vision
CSS examples
.background { background-color: #313228; }
.text { color: #313228; }
.border { border: 2px solid #313228; }
.transparent { background-color: rgb(49 50 40 / 50%); }
.gradient { background: linear-gradient(to right, #313228, #2c3228); }
Similar colors
#2b2e26Marshland#3b3c36Black Olive#313330Oil#2b322dTerminal Black#353935Onyx#262926Bitter Liquorice#393227Creole#1e231cUnderworld
Questions
- What color is #313228?
- #313228 is a very dark, grayish yellow, closest to the named color Marshland. It belongs to the gray family of colors.
- What is the RGB value of #313228?
- The RGB value is 49, 50, 40: 49 red, 50 green and 40 blue on a 0 to 255 scale.
- What is the complementary color of #313228?
- The complementary color is #292832, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313228?
- White text. Black text has a contrast ratio of 1.62:1 and white text 12.98:1. WCAG asks for at least 4.5:1 for normal text.