#40396F color
The hex color #40396F is a dark, desaturated blue.
In the RGB color model it is made of 25.1% red, 22.4% green and 43.5% blue (64, 57, 111).
Its hue angle is 248°, with 32% saturation and 33% lightness. For print, the CMYK equivalent is 42% cyan, 49% magenta, 0% yellow and 56% black.
The closest named color is Meteorite (#4A3B6A), a difference of 3.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.33:1).
#40396F color codes
| HEX | #40396F | |
|---|---|---|
| RGB | rgb(64, 57, 111) | |
| RGB percent | rgb(25.1%, 22.4%, 43.5%) | |
| HSL | hsl(248, 32%, 33%) | |
| HSV / HSB | hsv(248, 49%, 44%) | |
| CMYK | cmyk(42%, 49%, 0%, 56%) | |
| CIE LAB | lab(27.2, 17.71, -30.38) | |
| CIE LCH | lch(27.2, 35.17, 300.24) | |
| CIE XYZ | xyz(6.446, 5.164, 15.693) | |
| Decimal | 4209007 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40396F, 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 #40396F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.03:1 | Fail | Fail | Fail |
| Sample text | 10.33:1 | Pass | Pass | Pass |
| #40396F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.33:1 | Pass | Pass | Pass |
| Sample text | 2.03: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 #40396F looks to people with the most common types of color vision deficiency.
#254271Protanopia
no red cones#243f6eDeuteranopia
no green cones#33444eTritanopia
no blue cones#404040Achromatopsia
no color vision
CSS examples
.background { background-color: #40396f; }
.text { color: #40396f; }
.border { border: 2px solid #40396f; }
.transparent { background-color: rgb(64 57 111 / 50%); }
.gradient { background: linear-gradient(to right, #40396f, #5b396f); }
Similar colors
#4a3b6aMeteorite#48357bGalactic Compass#432e6fHer Highness#333c76Good Karma#3d3d63Storm Is Coming#2e305eGalaxea#363e7dEvening Magic#322c56Purple Noir
Closest common color name: Dark Slate Blue.
Questions
- What color is #40396F?
- #40396F is a dark, desaturated blue, closest to the named color Meteorite. It belongs to the blue family of colors.
- What is the RGB value of #40396F?
- The RGB value is 64, 57, 111: 64 red, 57 green and 111 blue on a 0 to 255 scale.
- What is the complementary color of #40396F?
- The complementary color is #686F39, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40396F?
- White text. Black text has a contrast ratio of 2.03:1 and white text 10.33:1. WCAG asks for at least 4.5:1 for normal text.