#40474F color
The hex color #40474F is a dark, grayish azure.
In the RGB color model it is made of 25.1% red, 27.8% green and 31% blue (64, 71, 79).
Its hue angle is 212°, with 10% saturation and 28% lightness. For print, the CMYK equivalent is 19% cyan, 10% magenta, 0% yellow and 69% black.
The closest named color is Arsenic (#3B444B), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.41:1).
#40474F color codes
| HEX | #40474F | |
|---|---|---|
| RGB | rgb(64, 71, 79) | |
| RGB percent | rgb(25.1%, 27.8%, 31%) | |
| HSL | hsl(212, 10%, 28%) | |
| HSV / HSB | hsv(212, 19%, 31%) | |
| CMYK | cmyk(19%, 10%, 0%, 69%) | |
| CIE LAB | lab(29.81, -0.87, -5.74) | |
| CIE LCH | lch(29.81, 5.81, 261.37) | |
| CIE XYZ | xyz(5.779, 6.161, 8.28) | |
| Decimal | 4212559 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40474F, 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 #40474F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.23:1 | Fail | Fail | Fail |
| Sample text | 9.41:1 | Pass | Pass | Pass |
| #40474F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.41:1 | Pass | Pass | Pass |
| Sample text | 2.23: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 #40474F looks to people with the most common types of color vision deficiency.
#44474fProtanopia
no red cones#42464fDeuteranopia
no green cones#3c494aTritanopia
no blue cones#464646Achromatopsia
no color vision
CSS examples
.background { background-color: #40474f; }
.text { color: #40474f; }
.border { border: 2px solid #40474f; }
.transparent { background-color: rgb(64 71 79 / 50%); }
.gradient { background: linear-gradient(to right, #40474f, #41404f); }
Similar colors
#3b444bArsenic#46494eTuna#414549Stargazing#3e4855Starless Night#404c57Abyssal#474d52Sooty Lashes#3f4551Dark Crypt#494d55Isolation
Closest common color name: Charcoal.
Questions
- What color is #40474F?
- #40474F is a dark, grayish azure, closest to the named color Arsenic. It belongs to the gray family of colors.
- What is the RGB value of #40474F?
- The RGB value is 64, 71, 79: 64 red, 71 green and 79 blue on a 0 to 255 scale.
- What is the complementary color of #40474F?
- The complementary color is #4F4840, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40474F?
- White text. Black text has a contrast ratio of 2.23:1 and white text 9.41:1. WCAG asks for at least 4.5:1 for normal text.