#40384C color
The hex color #40384C is a dark, grayish violet.
In the RGB color model it is made of 25.1% red, 22% green and 29.8% blue (64, 56, 76).
Its hue angle is 264°, with 15% saturation and 26% lightness. For print, the CMYK equivalent is 16% cyan, 26% magenta, 0% yellow and 70% black.
The closest named color is Royal Decree (#403547), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.12:1).
#40384C color codes
| HEX | #40384C | |
|---|---|---|
| RGB | rgb(64, 56, 76) | |
| RGB percent | rgb(25.1%, 22%, 29.8%) | |
| HSL | hsl(264, 15%, 26%) | |
| HSV / HSB | hsv(264, 26%, 30%) | |
| CMYK | cmyk(16%, 26%, 0%, 70%) | |
| CIE LAB | lab(25.08, 8.18, -10.94) | |
| CIE LCH | lch(25.08, 13.66, 306.8) | |
| CIE XYZ | xyz(4.833, 4.44, 7.439) | |
| Decimal | 4208716 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40384C, 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 #40384C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.89:1 | Fail | Fail | Fail |
| Sample text | 11.12:1 | Pass | Pass | Pass |
| #40384C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.12:1 | Pass | Pass | Pass |
| Sample text | 1.89: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 #40384C looks to people with the most common types of color vision deficiency.
#343b4dProtanopia
no red cones#363b4bDeuteranopia
no green cones#3e3b3fTritanopia
no blue cones#3b3b3bAchromatopsia
no color vision
CSS examples
.background { background-color: #40384c; }
.text { color: #40384c; }
.border { border: 2px solid #40384c; }
.transparent { background-color: rgb(64 56 76 / 50%); }
.gradient { background: linear-gradient(to right, #40384c, #4a384c); }
Similar colors
#403547Royal Decree#42364cCall It a Night#3f354fMaharaja#413d4bItalian Grape#333344Shuriken#393540Professor Plum#4f4554Black Magic#443240Voodoo
Closest common color name: Eggplant.
Questions
- What color is #40384C?
- #40384C is a dark, grayish violet, closest to the named color Royal Decree. It belongs to the purple family of colors.
- What is the RGB value of #40384C?
- The RGB value is 64, 56, 76: 64 red, 56 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #40384C?
- The complementary color is #444C38, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40384C?
- White text. Black text has a contrast ratio of 1.89:1 and white text 11.12:1. WCAG asks for at least 4.5:1 for normal text.