#31343D color
The hex color #31343D is a dark, grayish blue.
In the RGB color model it is made of 19.2% red, 20.4% green and 23.9% blue (49, 52, 61).
Its hue angle is 225°, with 11% saturation and 22% lightness. For print, the CMYK equivalent is 20% cyan, 15% magenta, 0% yellow and 76% black.
The closest named color is After Midnight (#38393F), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.43:1).
#31343D color codes
| HEX | #31343D | |
|---|---|---|
| RGB | rgb(49, 52, 61) | |
| RGB percent | rgb(19.2%, 20.4%, 23.9%) | |
| HSL | hsl(225, 11%, 22%) | |
| HSV / HSB | hsv(225, 20%, 24%) | |
| CMYK | cmyk(20%, 15%, 0%, 76%) | |
| CIE LAB | lab(21.75, 1.01, -6.07) | |
| CIE LCH | lch(21.75, 6.16, 279.47) | |
| CIE XYZ | xyz(3.337, 3.446, 4.903) | |
| Decimal | 3224637 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31343D, 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 #31343D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.69:1 | Fail | Fail | Fail |
| Sample text | 12.43:1 | Pass | Pass | Pass |
| #31343D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.43:1 | Pass | Pass | Pass |
| Sample text | 1.69: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 #31343D looks to people with the most common types of color vision deficiency.
#31353dProtanopia
no red cones#31343dDeuteranopia
no green cones#2e3637Tritanopia
no blue cones#343434Achromatopsia
no color vision
CSS examples
.background { background-color: #31343d; }
.text { color: #31343d; }
.border { border: 2px solid #31343d; }
.transparent { background-color: rgb(49 52 61 / 50%); }
.gradient { background: linear-gradient(to right, #31343d, #34313d); }
Similar colors
#38393fAfter Midnight#303543Total Eclipse#363b43Do Not Disturb#37393eArtist’s Charcoal#35343fWitches Cauldron#36383cVulcan#292b31Night Sky#3b3c41In the Dark
Closest common color name: Gunmetal.
Questions
- What color is #31343D?
- #31343D is a dark, grayish blue, closest to the named color After Midnight. It belongs to the gray family of colors.
- What is the RGB value of #31343D?
- The RGB value is 49, 52, 61: 49 red, 52 green and 61 blue on a 0 to 255 scale.
- What is the complementary color of #31343D?
- The complementary color is #3D3A31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31343D?
- White text. Black text has a contrast ratio of 1.69:1 and white text 12.43:1. WCAG asks for at least 4.5:1 for normal text.