#313234 color
The hex color #313234 is a dark gray.
In the RGB color model it is made of 19.2% red, 19.6% green and 20.4% blue (49, 50, 52).
Its hue angle is 220°, with 3% saturation and 20% lightness. For print, the CMYK equivalent is 6% cyan, 4% magenta, 0% yellow and 80% black.
The closest named color is Carbon (#333333), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.83:1).
#313234 color codes
| HEX | #313234 | |
|---|---|---|
| RGB | rgb(49, 50, 52) | |
| RGB percent | rgb(19.2%, 19.6%, 20.4%) | |
| HSL | hsl(220, 3%, 20%) | |
| HSV / HSB | hsv(220, 6%, 20%) | |
| CMYK | cmyk(6%, 4%, 0%, 80%) | |
| CIE LAB | lab(20.76, 0.04, -1.42) | |
| CIE LCH | lch(20.76, 1.42, 271.73) | |
| CIE XYZ | xyz(3.027, 3.182, 3.703) | |
| Decimal | 3224116 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313234, 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 #313234 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.64:1 | Fail | Fail | Fail |
| Sample text | 12.83:1 | Pass | Pass | Pass |
| #313234 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.83:1 | Pass | Pass | Pass |
| Sample text | 1.64: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 #313234 looks to people with the most common types of color vision deficiency.
#313234Protanopia
no red cones#313234Deuteranopia
no green cones#303233Tritanopia
no blue cones#323232Achromatopsia
no color vision
CSS examples
.background { background-color: #313234; }
.text { color: #313234; }
.border { border: 2px solid #313234; }
.transparent { background-color: rgb(49 50 52 / 50%); }
.gradient { background: linear-gradient(to right, #313234, #323134); }
Similar colors
#333333Carbon#343434Jet Black#333232Dark Charcoal#2e2e2eCarbon Fibre#36383cVulcan#2b2c30Caviar#383838Graphite#383838Lacquered Liquorice
Questions
- What color is #313234?
- #313234 is a dark gray, closest to the named color Carbon. It belongs to the gray family of colors.
- What is the RGB value of #313234?
- The RGB value is 49, 50, 52: 49 red, 50 green and 52 blue on a 0 to 255 scale.
- What is the complementary color of #313234?
- The complementary color is #343331, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313234?
- White text. Black text has a contrast ratio of 1.64:1 and white text 12.83:1. WCAG asks for at least 4.5:1 for normal text.