#313838 color
The hex color #313838 is a dark gray.
In the RGB color model it is made of 19.2% red, 22% green and 22% blue (49, 56, 56).
Its hue angle is 180°, with 7% saturation and 21% lightness. For print, the CMYK equivalent is 13% cyan, 0% magenta, 0% yellow and 78% black.
The closest named color is Phantom Ship (#2F3434), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.98:1).
#313838 color codes
| HEX | #313838 | |
|---|---|---|
| RGB | rgb(49, 56, 56) | |
| RGB percent | rgb(19.2%, 22%, 22%) | |
| HSL | hsl(180, 7%, 21%) | |
| HSV / HSB | hsv(180, 12%, 22%) | |
| CMYK | cmyk(13%, 0%, 0%, 78%) | |
| CIE LAB | lab(22.88, -2.95, -1.01) | |
| CIE LCH | lch(22.88, 3.12, 198.83) | |
| CIE XYZ | xyz(3.394, 3.767, 4.289) | |
| Decimal | 3225656 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313838, 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 #313838 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.75:1 | Fail | Fail | Fail |
| Sample text | 11.98:1 | Pass | Pass | Pass |
| #313838 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.98:1 | Pass | Pass | Pass |
| Sample text | 1.75: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 #313838 looks to people with the most common types of color vision deficiency.
#373738Protanopia
no red cones#363638Deuteranopia
no green cones#2f3938Tritanopia
no blue cones#373737Achromatopsia
no color vision
CSS examples
.background { background-color: #313838; }
.text { color: #313838; }
.border { border: 2px solid #313838; }
.transparent { background-color: rgb(49 56 56 / 50%); }
.gradient { background: linear-gradient(to right, #313838, #313538); }
Similar colors
#2f3434Phantom Ship#353838Wet Concrete#353935Onyx#293432Aztec#3b3f40Tamahagane#313330Oil#293135Nightmare Fuel#2a3439Gunmetal
Questions
- What color is #313838?
- #313838 is a dark gray, closest to the named color Phantom Ship. It belongs to the gray family of colors.
- What is the RGB value of #313838?
- The RGB value is 49, 56, 56: 49 red, 56 green and 56 blue on a 0 to 255 scale.
- What is the complementary color of #313838?
- The complementary color is #383131, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313838?
- White text. Black text has a contrast ratio of 1.75:1 and white text 11.98:1. WCAG asks for at least 4.5:1 for normal text.