#403F5C color
The hex color #403F5C is a dark, grayish blue.
In the RGB color model it is made of 25.1% red, 24.7% green and 36.1% blue (64, 63, 92).
Its hue angle is 242°, with 19% saturation and 30% lightness. For print, the CMYK equivalent is 30% cyan, 32% magenta, 0% yellow and 64% black.
The closest named color is Genie (#3E4364), a difference of 2.8 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.08:1).
#403F5C color codes
| HEX | #403F5C | |
|---|---|---|
| RGB | rgb(64, 63, 92) | |
| RGB percent | rgb(25.1%, 24.7%, 36.1%) | |
| HSL | hsl(242, 19%, 30%) | |
| HSV / HSB | hsv(242, 32%, 36%) | |
| CMYK | cmyk(30%, 32%, 0%, 64%) | |
| CIE LAB | lab(27.89, 7.92, -17.08) | |
| CIE LCH | lch(27.89, 18.83, 294.87) | |
| CIE XYZ | xyz(5.823, 5.418, 10.862) | |
| Decimal | 4210524 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #403F5C, 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 #403F5C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.08:1 | Fail | Fail | Fail |
| Sample text | 10.08:1 | Pass | Pass | Pass |
| #403F5C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.08:1 | Pass | Pass | Pass |
| Sample text | 2.08: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 #403F5C looks to people with the most common types of color vision deficiency.
#37435dProtanopia
no red cones#36415bDeuteranopia
no green cones#394449Tritanopia
no blue cones#424242Achromatopsia
no color vision
CSS examples
.background { background-color: #403f5c; }
.text { color: #403f5c; }
.border { border: 2px solid #403f5c; }
.transparent { background-color: rgb(64 63 92 / 50%); }
.gradient { background: linear-gradient(to right, #403f5c, #4f3f5c); }
Similar colors
#3e4364Genie#3d3d63Storm Is Coming#3f354fMaharaja#2e3858Mediaeval Blue#3b476bStarlit Night#2b3458Midnight Escapade#42364cCall It a Night#2c2e47Midnight Masquerade
Closest common color name: Dark Slate Blue.
Questions
- What color is #403F5C?
- #403F5C 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 #403F5C?
- The RGB value is 64, 63, 92: 64 red, 63 green and 92 blue on a 0 to 255 scale.
- What is the complementary color of #403F5C?
- The complementary color is #5B5C3F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #403F5C?
- White text. Black text has a contrast ratio of 2.08:1 and white text 10.08:1. WCAG asks for at least 4.5:1 for normal text.