#40505F color
The hex color #40505F is a dark, grayish azure.
In the RGB color model it is made of 25.1% red, 31.4% green and 37.3% blue (64, 80, 95).
Its hue angle is 209°, with 19% saturation and 31% lightness. For print, the CMYK equivalent is 33% cyan, 16% magenta, 0% yellow and 63% black.
The closest named color is Abyssal (#404C57), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.3:1).
#40505F color codes
| HEX | #40505F | |
|---|---|---|
| RGB | rgb(64, 80, 95) | |
| RGB percent | rgb(25.1%, 31.4%, 37.3%) | |
| HSL | hsl(209, 19%, 31%) | |
| HSV / HSB | hsv(209, 33%, 37%) | |
| CMYK | cmyk(33%, 16%, 0%, 63%) | |
| CIE LAB | lab(33.25, -2.22, -10.79) | |
| CIE LCH | lch(33.25, 11.02, 258.35) | |
| CIE XYZ | xyz(7.048, 7.653, 11.93) | |
| Decimal | 4214879 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40505F, 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 #40505F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.53:1 | Fail | Fail | Fail |
| Sample text | 8.3:1 | Pass | Pass | Pass |
| #40505F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.3:1 | Pass | Pass | Pass |
| Sample text | 2.53: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 #40505F looks to people with the most common types of color vision deficiency.
#4a5060Protanopia
no red cones#464d5fDeuteranopia
no green cones#375355Tritanopia
no blue cones#4e4e4eAchromatopsia
no color vision
CSS examples
.background { background-color: #40505f; }
.text { color: #40505f; }
.border { border: 2px solid #40505f; }
.transparent { background-color: rgb(64 80 95 / 50%); }
.gradient { background: linear-gradient(to right, #40505f, #40415f); }
Similar colors
#404c57Abyssal#3e5361Dark Secret#43535eNightfall#425267Into the Stratosphere#3e4855Starless Night#44556bInkjet#46565fGood Night!#314e64Outer Space
Closest common color name: Charcoal.
Questions
- What color is #40505F?
- #40505F is a dark, grayish azure, closest to the named color Abyssal. It belongs to the gray family of colors.
- What is the RGB value of #40505F?
- The RGB value is 64, 80, 95: 64 red, 80 green and 95 blue on a 0 to 255 scale.
- What is the complementary color of #40505F?
- The complementary color is #5F4F40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40505F?
- White text. Black text has a contrast ratio of 2.53:1 and white text 8.3:1. WCAG asks for at least 4.5:1 for normal text.