#40405E color
The hex color #40405E is a dark, grayish blue.
In the RGB color model it is made of 25.1% red, 25.1% green and 36.9% blue (64, 64, 94).
Its hue angle is 240°, with 19% saturation and 31% lightness. For print, the CMYK equivalent is 32% cyan, 32% magenta, 0% yellow and 63% black.
The closest named color is Genie (#3E4364), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 9.94:1).
#40405E color codes
| HEX | #40405E | |
|---|---|---|
| RGB | rgb(64, 64, 94) | |
| RGB percent | rgb(25.1%, 25.1%, 36.9%) | |
| HSL | hsl(240, 19%, 31%) | |
| HSV / HSB | hsv(240, 32%, 37%) | |
| CMYK | cmyk(32%, 32%, 0%, 63%) | |
| CIE LAB | lab(28.29, 7.84, -17.76) | |
| CIE LCH | lch(28.29, 19.41, 293.81) | |
| CIE XYZ | xyz(5.968, 5.565, 11.347) | |
| Decimal | 4210782 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40405E, 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 #40405E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.11:1 | Fail | Fail | Fail |
| Sample text | 9.94:1 | Pass | Pass | Pass |
| #40405E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.94:1 | Pass | Pass | Pass |
| Sample text | 2.11: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 #40405E looks to people with the most common types of color vision deficiency.
#37445fProtanopia
no red cones#36425dDeuteranopia
no green cones#39454bTritanopia
no blue cones#434343Achromatopsia
no color vision
CSS examples
.background { background-color: #40405e; }
.text { color: #40405e; }
.border { border: 2px solid #40405e; }
.transparent { background-color: rgb(64 64 94 / 50%); }
.gradient { background: linear-gradient(to right, #40405e, #4f405e); }
Similar colors
#3e4364Genie#3d3d63Storm Is Coming#2e3858Mediaeval Blue#3b476bStarlit Night#3f354fMaharaja#2b3458Midnight Escapade#3a4866Bonne Nuit#4d516cIntergalactic
Closest common color name: Dark Slate Blue.
Questions
- What color is #40405E?
- #40405E is a dark, grayish blue, closest to the named color Genie. It belongs to the blue family of colors.
- What is the RGB value of #40405E?
- The RGB value is 64, 64, 94: 64 red, 64 green and 94 blue on a 0 to 255 scale.
- What is the complementary color of #40405E?
- The complementary color is #5E5E40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40405E?
- White text. Black text has a contrast ratio of 2.11:1 and white text 9.94:1. WCAG asks for at least 4.5:1 for normal text.