#40397E color
The hex color #40397E is a dark, desaturated blue.
In the RGB color model it is made of 25.1% red, 22.4% green and 49.4% blue (64, 57, 126).
Its hue angle is 246°, with 38% saturation and 36% lightness. For print, the CMYK equivalent is 49% cyan, 55% magenta, 0% yellow and 51% black.
The closest named color is Dark Slate Blue (#483D8B), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 9.98:1).
#40397E color codes
| HEX | #40397E | |
|---|---|---|
| RGB | rgb(64, 57, 126) | |
| RGB percent | rgb(25.1%, 22.4%, 49.4%) | |
| HSL | hsl(246, 38%, 36%) | |
| HSV / HSB | hsv(246, 55%, 49%) | |
| CMYK | cmyk(49%, 55%, 0%, 51%) | |
| CIE LAB | lab(28.17, 22.54, -38.31) | |
| CIE LCH | lch(28.17, 44.45, 300.47) | |
| CIE XYZ | xyz(7.342, 5.522, 20.414) | |
| Decimal | 4209022 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40397E, 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 #40397E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.1:1 | Fail | Fail | Fail |
| Sample text | 9.98:1 | Pass | Pass | Pass |
| #40397E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.98:1 | Pass | Pass | Pass |
| Sample text | 2.1: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 #40397E looks to people with the most common types of color vision deficiency.
#164580Protanopia
no red cones#13407cDeuteranopia
no green cones#2b4855Tritanopia
no blue cones#424242Achromatopsia
no color vision
CSS examples
.background { background-color: #40397e; }
.text { color: #40397e; }
.border { border: 2px solid #40397e; }
.transparent { background-color: rgb(64 57 126 / 50%); }
.gradient { background: linear-gradient(to right, #40397e, #62397e); }
Similar colors
#483d8bDark Slate Blue#48357bGalactic Compass#443388Majestic Eggplant#363e7dEvening Magic#333c76Good Karma#464196Blueberry#3d4585Queen of the Night Shift#432e6fHer Highness
Questions
- What color is #40397E?
- #40397E is a dark, desaturated blue, closest to the named color Dark Slate Blue. It belongs to the blue family of colors.
- What is the RGB value of #40397E?
- The RGB value is 64, 57, 126: 64 red, 57 green and 126 blue on a 0 to 255 scale.
- What is the complementary color of #40397E?
- The complementary color is #777E39, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40397E?
- White text. Black text has a contrast ratio of 2.1:1 and white text 9.98:1. WCAG asks for at least 4.5:1 for normal text.