#31504C color
The hex color #31504C is a dark, grayish spring green.
In the RGB color model it is made of 19.2% red, 31.4% green and 29.8% blue (49, 80, 76).
Its hue angle is 172°, with 24% saturation and 25% lightness. For print, the CMYK equivalent is 39% cyan, 0% magenta, 5% yellow and 69% black.
The closest named color is Dark Slate Gray (#2F4F4F), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.81:1).
#31504C color codes
| HEX | #31504C | |
|---|---|---|
| RGB | rgb(49, 80, 76) | |
| RGB percent | rgb(19.2%, 31.4%, 29.8%) | |
| HSL | hsl(172, 24%, 25%) | |
| HSV / HSB | hsv(172, 39%, 31%) | |
| CMYK | cmyk(39%, 0%, 5%, 69%) | |
| CIE LAB | lab(31.61, -12.51, -1.28) | |
| CIE LCH | lch(31.61, 12.58, 185.84) | |
| CIE XYZ | xyz(5.439, 6.912, 7.884) | |
| Decimal | 3231820 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31504C, 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 #31504C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.38:1 | Fail | Fail | Fail |
| Sample text | 8.81:1 | Pass | Pass | Pass |
| #31504C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.81:1 | Pass | Pass | Pass |
| Sample text | 2.38: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 #31504C looks to people with the most common types of color vision deficiency.
#4d4d4cProtanopia
no red cones#47494cDeuteranopia
no green cones#26514fTritanopia
no blue cones#4a4a4aAchromatopsia
no color vision
CSS examples
.background { background-color: #31504c; }
.text { color: #31504c; }
.border { border: 2px solid #31504c; }
.transparent { background-color: rgb(49 80 76 / 50%); }
.gradient { background: linear-gradient(to right, #31504c, #314550); }
Similar colors
#2f4f4fDark Slate Gray#33534bHunter#315955Enchanting Ivy#334d41Pine Needle#3a5b52Iridescent#3c4f4eNight Watch#2e5c58Lacrosse#405e5cRosemary
Questions
- What color is #31504C?
- #31504C is a dark, grayish spring green, closest to the named color Dark Slate Gray. It belongs to the gray family of colors.
- What is the RGB value of #31504C?
- The RGB value is 49, 80, 76: 49 red, 80 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #31504C?
- The complementary color is #503135, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31504C?
- White text. Black text has a contrast ratio of 2.38:1 and white text 8.81:1. WCAG asks for at least 4.5:1 for normal text.