#404781 color
The hex color #404781 is a dark, desaturated blue.
In the RGB color model it is made of 25.1% red, 27.8% green and 50.6% blue (64, 71, 129).
Its hue angle is 234°, with 34% saturation and 38% lightness. For print, the CMYK equivalent is 50% cyan, 45% magenta, 0% yellow and 49% black.
The closest named color is Queen of the Night Shift (#3D4585), a difference of 1.3 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 8.62:1).
#404781 color codes
| HEX | #404781 | |
|---|---|---|
| RGB | rgb(64, 71, 129) | |
| RGB percent | rgb(25.1%, 27.8%, 50.6%) | |
| HSL | hsl(234, 34%, 38%) | |
| HSV / HSB | hsv(234, 50%, 51%) | |
| CMYK | cmyk(50%, 45%, 0%, 49%) | |
| CIE LAB | lab(32.22, 14.26, -33.71) | |
| CIE LCH | lch(32.22, 36.61, 292.93) | |
| CIE XYZ | xyz(8.329, 7.181, 21.712) | |
| Decimal | 4212609 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #404781, 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 #404781 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.44:1 | Fail | Fail | Fail |
| Sample text | 8.62:1 | Pass | Pass | Pass |
| #404781 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.62:1 | Pass | Pass | Pass |
| Sample text | 2.44: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 #404781 looks to people with the most common types of color vision deficiency.
#304f83Protanopia
no red cones#2a4980Deuteranopia
no green cones#27535dTritanopia
no blue cones#4c4c4cAchromatopsia
no color vision
CSS examples
.background { background-color: #404781; }
.text { color: #404781; }
.border { border: 2px solid #404781; }
.transparent { background-color: rgb(64 71 129 / 50%); }
.gradient { background: linear-gradient(to right, #404781, #5a4081); }
Similar colors
#3d4585Queen of the Night Shift#363e7dEvening Magic#333c76Good Karma#4e518bTwilight#324471Space Missions#394d78Noble Knight#50507fTangent Periwinkle#2c4170Napoleonic Blue
Closest common color name: Dark Slate Blue.
Questions
- What color is #404781?
- #404781 is a dark, desaturated blue, closest to the named color Queen of the Night Shift. It belongs to the blue family of colors.
- What is the RGB value of #404781?
- The RGB value is 64, 71, 129: 64 red, 71 green and 129 blue on a 0 to 255 scale.
- What is the complementary color of #404781?
- The complementary color is #817A40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #404781?
- White text. Black text has a contrast ratio of 2.44:1 and white text 8.62:1. WCAG asks for at least 4.5:1 for normal text.