#343831 color
The hex color #343831 is a dark gray.
In the RGB color model it is made of 20.4% red, 22% green and 19.2% blue (52, 56, 49).
Its hue angle is 94°, with 7% saturation and 21% lightness. For print, the CMYK equivalent is 7% cyan, 0% magenta, 13% yellow and 78% black.
The closest named color is Onyx (#353935), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.96:1).
#343831 color codes
| HEX | #343831 | |
|---|---|---|
| RGB | rgb(52, 56, 49) | |
| RGB percent | rgb(20.4%, 22%, 19.2%) | |
| HSL | hsl(94, 7%, 21%) | |
| HSV / HSB | hsv(94, 12%, 22%) | |
| CMYK | cmyk(7%, 0%, 13%, 78%) | |
| CIE LAB | lab(22.93, -3.31, 3.8) | |
| CIE LCH | lch(22.93, 5.03, 131.07) | |
| CIE XYZ | xyz(3.385, 3.78, 3.456) | |
| Decimal | 3422257 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #343831, 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 #343831 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.76:1 | Fail | Fail | Fail |
| Sample text | 11.96:1 | Pass | Pass | Pass |
| #343831 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.96:1 | Pass | Pass | Pass |
| Sample text | 1.76: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 #343831 looks to people with the most common types of color vision deficiency.
#393731Protanopia
no red cones#383731Deuteranopia
no green cones#343736Tritanopia
no blue cones#373737Achromatopsia
no color vision
CSS examples
.background { background-color: #343831; }
.text { color: #343831; }
.border { border: 2px solid #343831; }
.transparent { background-color: rgb(52 56 49 / 50%); }
.gradient { background: linear-gradient(to right, #343831, #313831); }
Similar colors
#353935Onyx#3b3c36Black Olive#2b322dTerminal Black#313330Oil#2b2e26Marshland#2f3434Phantom Ship#353838Wet Concrete#293432Aztec
Questions
- What color is #343831?
- #343831 is a dark gray, closest to the named color Onyx. It belongs to the gray family of colors.
- What is the RGB value of #343831?
- The RGB value is 52, 56, 49: 52 red, 56 green and 49 blue on a 0 to 255 scale.
- What is the complementary color of #343831?
- The complementary color is #353138, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #343831?
- White text. Black text has a contrast ratio of 1.76:1 and white text 11.96:1. WCAG asks for at least 4.5:1 for normal text.