#40325A color
The hex color #40325A is a dark, desaturated violet.
In the RGB color model it is made of 25.1% red, 19.6% green and 35.3% blue (64, 50, 90).
Its hue angle is 261°, with 29% saturation and 27% lightness. For print, the CMYK equivalent is 29% cyan, 44% magenta, 0% yellow and 65% black.
The closest named color is Midnight Pie (#372D52), a difference of 2.4 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.53:1).
#40325A color codes
| HEX | #40325A | |
|---|---|---|
| RGB | rgb(64, 50, 90) | |
| RGB percent | rgb(25.1%, 19.6%, 35.3%) | |
| HSL | hsl(261, 29%, 27%) | |
| HSV / HSB | hsv(261, 44%, 35%) | |
| CMYK | cmyk(29%, 44%, 0%, 65%) | |
| CIE LAB | lab(24.03, 16.05, -21.8) | |
| CIE LCH | lch(24.03, 27.07, 306.35) | |
| CIE XYZ | xyz(5.1, 4.109, 10.195) | |
| Decimal | 4207194 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40325A, 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 #40325A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.82:1 | Fail | Fail | Fail |
| Sample text | 11.53:1 | Pass | Pass | Pass |
| #40325A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.53:1 | Pass | Pass | Pass |
| Sample text | 1.82: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 #40325A looks to people with the most common types of color vision deficiency.
#27395cProtanopia
no red cones#2a3959Deuteranopia
no green cones#3b3941Tritanopia
no blue cones#393939Achromatopsia
no color vision
CSS examples
.background { background-color: #40325a; }
.text { color: #40325a; }
.border { border: 2px solid #40325a; }
.transparent { background-color: rgb(64 50 90 / 50%); }
.gradient { background: linear-gradient(to right, #40325a, #54325a); }
Similar colors
#372d52Midnight Pie#3c2f4eSanctum of Shadows#322c56Purple Noir#4a3b6aMeteorite#4f325eRoyal Crown#48295bAcai#3f354fMaharaja#372354Stormy Night
Closest common color name: Dark Purple.
Questions
- What color is #40325A?
- #40325A is a dark, desaturated violet, closest to the named color Midnight Pie. It belongs to the purple family of colors.
- What is the RGB value of #40325A?
- The RGB value is 64, 50, 90: 64 red, 50 green and 90 blue on a 0 to 255 scale.
- What is the complementary color of #40325A?
- The complementary color is #4C5A32, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40325A?
- White text. Black text has a contrast ratio of 1.82:1 and white text 11.53:1. WCAG asks for at least 4.5:1 for normal text.