#40474C color
The hex color #40474C is a dark, grayish azure.
In the RGB color model it is made of 25.1% red, 27.8% green and 29.8% blue (64, 71, 76).
Its hue angle is 205°, with 9% saturation and 27% lightness. For print, the CMYK equivalent is 16% cyan, 7% magenta, 0% yellow and 70% black.
The closest named color is Stargazing (#414549), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.44:1).
#40474C color codes
| HEX | #40474C | |
|---|---|---|
| RGB | rgb(64, 71, 76) | |
| RGB percent | rgb(25.1%, 27.8%, 29.8%) | |
| HSL | hsl(205, 9%, 27%) | |
| HSV / HSB | hsv(205, 16%, 30%) | |
| CMYK | cmyk(16%, 7%, 0%, 70%) | |
| CIE LAB | lab(29.71, -1.63, -3.96) | |
| CIE LCH | lch(29.71, 4.29, 247.62) | |
| CIE XYZ | xyz(5.672, 6.118, 7.718) | |
| Decimal | 4212556 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40474C, 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 #40474C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.22:1 | Fail | Fail | Fail |
| Sample text | 9.44:1 | Pass | Pass | Pass |
| #40474C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.44:1 | Pass | Pass | Pass |
| Sample text | 2.22: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 #40474C looks to people with the most common types of color vision deficiency.
#45474cProtanopia
no red cones#43454cDeuteranopia
no green cones#3d4849Tritanopia
no blue cones#464646Achromatopsia
no color vision
CSS examples
.background { background-color: #40474c; }
.text { color: #40474c; }
.border { border: 2px solid #40474c; }
.transparent { background-color: rgb(64 71 76 / 50%); }
.gradient { background: linear-gradient(to right, #40474c, #40414c); }
Similar colors
#414549Stargazing#3b444bArsenic#3d474bLights Out#474c50Witchcraft#474d52Sooty Lashes#46494eTuna#3e4244Metropolitan Silhouette#414a4cDark Space
Closest common color name: Charcoal.
Questions
- What color is #40474C?
- #40474C is a dark, grayish azure, closest to the named color Stargazing. It belongs to the gray family of colors.
- What is the RGB value of #40474C?
- The RGB value is 64, 71, 76: 64 red, 71 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #40474C?
- The complementary color is #4C4540, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40474C?
- White text. Black text has a contrast ratio of 2.22:1 and white text 9.44:1. WCAG asks for at least 4.5:1 for normal text.