#40406E color
The hex color #40406E is a dark, desaturated blue.
In the RGB color model it is made of 25.1% red, 25.1% green and 43.1% blue (64, 64, 110).
Its hue angle is 240°, with 26% saturation and 34% lightness. For print, the CMYK equivalent is 42% cyan, 42% magenta, 0% yellow and 57% black.
The closest named color is Storm Is Coming (#3D3D63), a difference of 2.5 ΔE, a small difference.
White text is the more readable choice on this background (contrast 9.65:1).
#40406E color codes
| HEX | #40406E | |
|---|---|---|
| RGB | rgb(64, 64, 110) | |
| RGB percent | rgb(25.1%, 25.1%, 43.1%) | |
| HSL | hsl(240, 26%, 34%) | |
| HSV / HSB | hsv(240, 42%, 43%) | |
| CMYK | cmyk(42%, 42%, 0%, 57%) | |
| CIE LAB | lab(29.11, 12.72, -26.71) | |
| CIE LCH | lch(29.11, 29.58, 295.46) | |
| CIE XYZ | xyz(6.761, 5.882, 15.528) | |
| Decimal | 4210798 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40406E, 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 #40406E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.18:1 | Fail | Fail | Fail |
| Sample text | 9.65:1 | Pass | Pass | Pass |
| #40406E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.65:1 | Pass | Pass | Pass |
| Sample text | 2.18: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 #40406E looks to people with the most common types of color vision deficiency.
#304670Protanopia
no red cones#2e436dDeuteranopia
no green cones#334951Tritanopia
no blue cones#454545Achromatopsia
no color vision
CSS examples
.background { background-color: #40406e; }
.text { color: #40406e; }
.border { border: 2px solid #40406e; }
.transparent { background-color: rgb(64 64 110 / 50%); }
.gradient { background: linear-gradient(to right, #40406e, #57406e); }
Similar colors
#3d3d63Storm Is Coming#3e4364Genie#333c76Good Karma#4a3b6aMeteorite#3b476bStarlit Night#363e7dEvening Magic#324471Space Missions#3d4585Queen of the Night Shift
Closest common color name: Dark Slate Blue.
Questions
- What color is #40406E?
- #40406E is a dark, desaturated blue, closest to the named color Storm Is Coming. It belongs to the blue family of colors.
- What is the RGB value of #40406E?
- The RGB value is 64, 64, 110: 64 red, 64 green and 110 blue on a 0 to 255 scale.
- What is the complementary color of #40406E?
- The complementary color is #6E6E40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40406E?
- White text. Black text has a contrast ratio of 2.18:1 and white text 9.65:1. WCAG asks for at least 4.5:1 for normal text.