#404C7D color
The hex color #404C7D is a dark, desaturated blue.
In the RGB color model it is made of 25.1% red, 29.8% green and 49% blue (64, 76, 125).
Its hue angle is 228°, with 32% saturation and 37% lightness. For print, the CMYK equivalent is 49% cyan, 39% magenta, 0% yellow and 51% black.
The closest named color is Noble Knight (#394D78), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 8.24:1).
#404C7D color codes
| HEX | #404C7D | |
|---|---|---|
| RGB | rgb(64, 76, 125) | |
| RGB percent | rgb(25.1%, 29.8%, 49%) | |
| HSL | hsl(228, 32%, 37%) | |
| HSV / HSB | hsv(228, 49%, 49%) | |
| CMYK | cmyk(49%, 39%, 0%, 51%) | |
| CIE LAB | lab(33.43, 9.63, -29.3) | |
| CIE LCH | lch(33.43, 30.85, 288.2) | |
| CIE XYZ | xyz(8.399, 7.739, 20.449) | |
| Decimal | 4213885 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #404C7D, 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 #404C7D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.55:1 | Fail | Fail | Fail |
| Sample text | 8.24:1 | Pass | Pass | Pass |
| #404C7D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 8.24:1 | Pass | Pass | Pass |
| Sample text | 2.55: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 #404C7D looks to people with the most common types of color vision deficiency.
#3a517fProtanopia
no red cones#344c7cDeuteranopia
no green cones#29565eTritanopia
no blue cones#4f4f4fAchromatopsia
no color vision
CSS examples
.background { background-color: #404c7d; }
.text { color: #404c7d; }
.border { border: 2px solid #404c7d; }
.transparent { background-color: rgb(64 76 125 / 50%); }
.gradient { background: linear-gradient(to right, #404c7d, #52407d); }
Similar colors
#394d78Noble Knight#3d4585Queen of the Night Shift#324471Space Missions#4e5481Dusk#4e518bTwilight#3b476bStarlit Night#314a76Dragonfly#34466cForlorn Cruise
Closest common color name: Dark Slate Blue.
Questions
- What color is #404C7D?
- #404C7D is a dark, desaturated blue, closest to the named color Noble Knight. It belongs to the blue family of colors.
- What is the RGB value of #404C7D?
- The RGB value is 64, 76, 125: 64 red, 76 green and 125 blue on a 0 to 255 scale.
- What is the complementary color of #404C7D?
- The complementary color is #7D7140, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #404C7D?
- White text. Black text has a contrast ratio of 2.55:1 and white text 8.24:1. WCAG asks for at least 4.5:1 for normal text.