#405174 color
The hex color #405174 is a dark, desaturated blue.
In the RGB color model it is made of 25.1% red, 31.8% green and 45.5% blue (64, 81, 116).
Its hue angle is 220°, with 29% saturation and 35% lightness. For print, the CMYK equivalent is 45% cyan, 30% magenta, 0% yellow and 55% black.
The closest named color is Noble Knight (#394D78), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 7.93:1).
#405174 color codes
| HEX | #405174 | |
|---|---|---|
| RGB | rgb(64, 81, 116) | |
| RGB percent | rgb(25.1%, 31.8%, 45.5%) | |
| HSL | hsl(220, 29%, 35%) | |
| HSV / HSB | hsv(220, 45%, 45%) | |
| CMYK | cmyk(45%, 30%, 0%, 55%) | |
| CIE LAB | lab(34.47, 3.47, -22.09) | |
| CIE LCH | lch(34.47, 22.36, 278.93) | |
| CIE XYZ | xyz(8.208, 8.235, 17.677) | |
| Decimal | 4215156 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #405174, 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 #405174 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.65:1 | Fail | Fail | Fail |
| Sample text | 7.93:1 | Pass | Pass | Pass |
| #405174 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 7.93:1 | Pass | Pass | Pass |
| Sample text | 2.65: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 #405174 looks to people with the most common types of color vision deficiency.
#445476Protanopia
no red cones#3f4f73Deuteranopia
no green cones#2e585dTritanopia
no blue cones#515151Achromatopsia
no color vision
CSS examples
.background { background-color: #405174; }
.text { color: #405174; }
.border { border: 2px solid #405174; }
.transparent { background-color: rgb(64 81 116 / 50%); }
.gradient { background: linear-gradient(to right, #405174, #494074); }
Similar colors
#394d78Noble Knight#384b6bNaval Blue#445780Sailor#39527dSt. Tropaz#4c567aDeep Indigo#32496fMidnight Interlude#3a4866Bonne Nuit#314a76Dragonfly
Closest common color name: Dark Slate Blue.
Questions
- What color is #405174?
- #405174 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 #405174?
- The RGB value is 64, 81, 116: 64 red, 81 green and 116 blue on a 0 to 255 scale.
- What is the complementary color of #405174?
- The complementary color is #746340, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #405174?
- White text. Black text has a contrast ratio of 2.65:1 and white text 7.93:1. WCAG asks for at least 4.5:1 for normal text.