#40385D color
The hex color #40385D is a dark, grayish violet.
In the RGB color model it is made of 25.1% red, 22% green and 36.5% blue (64, 56, 93).
Its hue angle is 253°, with 25% saturation and 29% lightness. For print, the CMYK equivalent is 31% cyan, 40% magenta, 0% yellow and 64% black.
The closest named color is Storm Is Coming (#3D3D63), a difference of 3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.82:1).
#40385D color codes
| HEX | #40385D | |
|---|---|---|
| RGB | rgb(64, 56, 93) | |
| RGB percent | rgb(25.1%, 22%, 36.5%) | |
| HSL | hsl(253, 25%, 29%) | |
| HSV / HSB | hsv(253, 40%, 36%) | |
| CMYK | cmyk(31%, 40%, 0%, 64%) | |
| CIE LAB | lab(25.89, 12.89, -20.85) | |
| CIE LCH | lch(25.89, 24.51, 301.72) | |
| CIE XYZ | xyz(5.504, 4.709, 10.973) | |
| Decimal | 4208733 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40385D, 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 #40385D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.94:1 | Fail | Fail | Fail |
| Sample text | 10.82:1 | Pass | Pass | Pass |
| #40385D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.82:1 | Pass | Pass | Pass |
| Sample text | 1.94: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 #40385D looks to people with the most common types of color vision deficiency.
#2e3e5eProtanopia
no red cones#2f3d5cDeuteranopia
no green cones#3a3f46Tritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #40385d; }
.text { color: #40385d; }
.border { border: 2px solid #40385d; }
.transparent { background-color: rgb(64 56 93 / 50%); }
.gradient { background: linear-gradient(to right, #40385d, #52385d); }
Similar colors
#3d3d63Storm Is Coming#372d52Midnight Pie#4a3b6aMeteorite#3c2f4eSanctum of Shadows#3f354fMaharaja#322c56Purple Noir#2e305eGalaxea#2c2c57Deep Sea Base
Closest common color name: Dark Slate Blue.
Questions
- What color is #40385D?
- #40385D is a dark, grayish violet, closest to the named color Storm Is Coming. It belongs to the blue family of colors.
- What is the RGB value of #40385D?
- The RGB value is 64, 56, 93: 64 red, 56 green and 93 blue on a 0 to 255 scale.
- What is the complementary color of #40385D?
- The complementary color is #555D38, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40385D?
- White text. Black text has a contrast ratio of 1.94:1 and white text 10.82:1. WCAG asks for at least 4.5:1 for normal text.