#404958 color
The hex color #404958 is a dark, grayish azure.
In the RGB color model it is made of 25.1% red, 28.6% green and 34.5% blue (64, 73, 88).
Its hue angle is 218°, with 16% saturation and 30% lightness. For print, the CMYK equivalent is 27% cyan, 17% magenta, 0% yellow and 65% black.
The closest named color is Starless Night (#3E4855), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.08:1).
#404958 color codes
| HEX | #404958 | |
|---|---|---|
| RGB | rgb(64, 73, 88) | |
| RGB percent | rgb(25.1%, 28.6%, 34.5%) | |
| HSL | hsl(218, 16%, 30%) | |
| HSV / HSB | hsv(218, 27%, 35%) | |
| CMYK | cmyk(27%, 17%, 0%, 65%) | |
| CIE LAB | lab(30.78, 0.25, -10.08) | |
| CIE LCH | lch(30.78, 10.08, 271.43) | |
| CIE XYZ | xyz(6.258, 6.559, 10.167) | |
| Decimal | 4213080 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #404958, 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 #404958 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.31:1 | Fail | Fail | Fail |
| Sample text | 9.08:1 | Pass | Pass | Pass |
| #404958 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.08:1 | Pass | Pass | Pass |
| Sample text | 2.31: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 #404958 looks to people with the most common types of color vision deficiency.
#444a59Protanopia
no red cones#424758Deuteranopia
no green cones#3a4c4eTritanopia
no blue cones#484848Achromatopsia
no color vision
CSS examples
.background { background-color: #404958; }
.text { color: #404958; }
.border { border: 2px solid #404958; }
.transparent { background-color: rgb(64 73 88 / 50%); }
.gradient { background: linear-gradient(to right, #404958, #434058); }
Similar colors
#3e4855Starless Night#424753Midnight Sky#3f4551Dark Crypt#404c57Abyssal#3c4151Lava Stone#393f4bInkblot#3f4250Madonna#494c55Deep Night
Closest common color name: Charcoal.
Questions
- What color is #404958?
- #404958 is a dark, grayish azure, closest to the named color Starless Night. It belongs to the gray family of colors.
- What is the RGB value of #404958?
- The RGB value is 64, 73, 88: 64 red, 73 green and 88 blue on a 0 to 255 scale.
- What is the complementary color of #404958?
- The complementary color is #584F40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #404958?
- White text. Black text has a contrast ratio of 2.31:1 and white text 9.08:1. WCAG asks for at least 4.5:1 for normal text.