#40504C color
The hex color #40504C is a dark, grayish spring green.
In the RGB color model it is made of 25.1% red, 31.4% green and 29.8% blue (64, 80, 76).
Its hue angle is 165°, with 11% saturation and 28% lightness. For print, the CMYK equivalent is 20% cyan, 0% magenta, 5% yellow and 69% black.
The closest named color is Night Watch (#3C4F4E), a difference of 1.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.5:1).
#40504C color codes
| HEX | #40504C | |
|---|---|---|
| RGB | rgb(64, 80, 76) | |
| RGB percent | rgb(25.1%, 31.4%, 29.8%) | |
| HSL | hsl(165, 11%, 28%) | |
| HSV / HSB | hsv(165, 20%, 31%) | |
| CMYK | cmyk(20%, 0%, 5%, 69%) | |
| CIE LAB | lab(32.59, -7.22, 0.27) | |
| CIE LCH | lch(32.59, 7.23, 177.82) | |
| CIE XYZ | xyz(6.287, 7.349, 7.923) | |
| Decimal | 4214860 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40504C, 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 #40504C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.47:1 | Fail | Fail | Fail |
| Sample text | 8.5:1 | Pass | Pass | Pass |
| #40504C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.5:1 | Pass | Pass | Pass |
| Sample text | 2.47: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 #40504C looks to people with the most common types of color vision deficiency.
#4f4e4cProtanopia
no red cones#4c4c4cDeuteranopia
no green cones#3c514fTritanopia
no blue cones#4d4d4dAchromatopsia
no color vision
CSS examples
.background { background-color: #40504c; }
.text { color: #40504c; }
.border { border: 2px solid #40504c; }
.transparent { background-color: rgb(64 80 76 / 50%); }
.gradient { background: linear-gradient(to right, #40504c, #404c50); }
Similar colors
#3c4f4eNight Watch#455454All Nighter#424c4aUrban Chic#3c463eDeep Forest#495252Dark as Night#444b43Ancient Pine#444b4aMoonless Sky#475c5dWoodland Night
Closest common color name: Dark Slate Gray.
Questions
- What color is #40504C?
- #40504C is a dark, grayish spring green, closest to the named color Night Watch. It belongs to the gray family of colors.
- What is the RGB value of #40504C?
- The RGB value is 64, 80, 76: 64 red, 80 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #40504C?
- The complementary color is #504044, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40504C?
- White text. Black text has a contrast ratio of 2.47:1 and white text 8.5:1. WCAG asks for at least 4.5:1 for normal text.