#404A40 color
The hex color #404A40 is a dark gray.
In the RGB color model it is made of 25.1% red, 29% green and 25.1% blue (64, 74, 64).
Its hue angle is 120°, with 7% saturation and 27% lightness. For print, the CMYK equivalent is 14% cyan, 0% magenta, 14% yellow and 71% black.
The closest named color is Deep Forest (#3C463E), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.24:1).
#404A40 color codes
| HEX | #404A40 | |
|---|---|---|
| RGB | rgb(64, 74, 64) | |
| RGB percent | rgb(25.1%, 29%, 25.1%) | |
| HSL | hsl(120, 7%, 27%) | |
| HSV / HSB | hsv(120, 14%, 29%) | |
| CMYK | cmyk(14%, 0%, 14%, 71%) | |
| CIE LAB | lab(30.3, -6.3, 4.63) | |
| CIE LCH | lch(30.3, 7.82, 143.71) | |
| CIE XYZ | xyz(5.488, 6.358, 5.787) | |
| Decimal | 4213312 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #404A40, 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 #404A40 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.27:1 | Fail | Fail | Fail |
| Sample text | 9.24:1 | Pass | Pass | Pass |
| #404A40 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.24:1 | Pass | Pass | Pass |
| Sample text | 2.27: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 #404A40 looks to people with the most common types of color vision deficiency.
#4a483fProtanopia
no red cones#494740Deuteranopia
no green cones#3f4947Tritanopia
no blue cones#474747Achromatopsia
no color vision
CSS examples
.background { background-color: #404a40; }
.text { color: #404a40; }
.border { border: 2px solid #404a40; }
.transparent { background-color: rgb(64 74 64 / 50%); }
.gradient { background: linear-gradient(to right, #404a40, #404a45); }
Similar colors
#3c463eDeep Forest#444b43Ancient Pine#424c4aUrban Chic#46473eHeavy Metal#424f3bHōjicha#394c3bMountain View#444b4aMoonless Sky#484a46Armadillo
Closest common color name: Ebony.
Questions
- What color is #404A40?
- #404A40 is a dark gray, closest to the named color Deep Forest. It belongs to the gray family of colors.
- What is the RGB value of #404A40?
- The RGB value is 64, 74, 64: 64 red, 74 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #404A40?
- The complementary color is #4A404A, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #404A40?
- White text. Black text has a contrast ratio of 2.27:1 and white text 9.24:1. WCAG asks for at least 4.5:1 for normal text.