#31342E color

#31342E rgb(49, 52, 46)
Shades of gray

The hex color #31342E is a dark gray.

In the RGB color model it is made of 19.2% red, 20.4% green and 18% blue (49, 52, 46).

Its hue angle is 90°, with 6% saturation and 19% lightness. For print, the CMYK equivalent is 6% cyan, 0% magenta, 12% yellow and 80% black.

The closest named color is Onyx (#353935), a difference of 2 ΔE, a small difference.

White text is the more readable choice on this background (contrast 12.64:1).

#31342E color codes

HEX#31342E
RGBrgb(49, 52, 46)
RGB percentrgb(19.2%, 20.4%, 18%)
HSLhsl(90, 6%, 19%)
HSV / HSBhsv(90, 12%, 20%)
CMYKcmyk(6%, 0%, 12%, 80%)
CIE LABlab(21.23, -2.68, 3.35)
CIE LCHlch(21.23, 4.29, 128.64)
CIE XYZxyz(2.988, 3.306, 3.065)
Decimal3224622
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #31342E, 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 #31342ERatioAAAAAAA large
Sample text1.66:1FailFailFail
Sample text12.64:1PassPassPass
#31342E as text onRatioAAAAAAA large
Sample text12.64:1PassPassPass
Sample text1.66:1FailFailFail

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 #31342E looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #31342e; }
.text { color: #31342e; }
.border { border: 2px solid #31342e; }
.transparent { background-color: rgb(49 52 46 / 50%); }
.gradient { background: linear-gradient(to right, #31342e, #2e342e); }
Background
Text color
Border

Similar colors

Questions

What color is #31342E?
#31342E is a dark gray, closest to the named color Onyx. It belongs to the gray family of colors.
What is the RGB value of #31342E?
The RGB value is 49, 52, 46: 49 red, 52 green and 46 blue on a 0 to 255 scale.
What is the complementary color of #31342E?
The complementary color is #312E34, found by rotating the hue 180° on the color wheel.
Is black or white text better on #31342E?
White text. Black text has a contrast ratio of 1.66:1 and white text 12.64:1. WCAG asks for at least 4.5:1 for normal text.