#40384A color
The hex color #40384A is a dark, grayish violet.
In the RGB color model it is made of 25.1% red, 22% green and 29% blue (64, 56, 74).
Its hue angle is 267°, with 14% saturation and 25% lightness. For print, the CMYK equivalent is 14% cyan, 24% magenta, 0% yellow and 71% black.
The closest named color is Royal Decree (#403547), a difference of 1.6 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.16:1).
#40384A color codes
| HEX | #40384A | |
|---|---|---|
| RGB | rgb(64, 56, 74) | |
| RGB percent | rgb(25.1%, 22%, 29%) | |
| HSL | hsl(267, 14%, 25%) | |
| HSV / HSB | hsv(267, 24%, 29%) | |
| CMYK | cmyk(14%, 24%, 0%, 71%) | |
| CIE LAB | lab(24.99, 7.67, -9.74) | |
| CIE LCH | lch(24.99, 12.4, 308.21) | |
| CIE XYZ | xyz(4.764, 4.413, 7.078) | |
| Decimal | 4208714 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40384A, 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 #40384A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.88:1 | Fail | Fail | Fail |
| Sample text | 11.16:1 | Pass | Pass | Pass |
| #40384A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.16:1 | Pass | Pass | Pass |
| Sample text | 1.88: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 #40384A looks to people with the most common types of color vision deficiency.
#353b4bProtanopia
no red cones#363b49Deuteranopia
no green cones#3f3a3eTritanopia
no blue cones#3b3b3bAchromatopsia
no color vision
CSS examples
.background { background-color: #40384a; }
.text { color: #40384a; }
.border { border: 2px solid #40384a; }
.transparent { background-color: rgb(64 56 74 / 50%); }
.gradient { background: linear-gradient(to right, #40384a, #49384a); }
Similar colors
#403547Royal Decree#42364cCall It a Night#413d4bItalian Grape#3f354fMaharaja#393540Professor Plum#333344Shuriken#4f4554Black Magic#443240Voodoo
Closest common color name: Eggplant.
Questions
- What color is #40384A?
- #40384A is a dark, grayish violet, closest to the named color Royal Decree. It belongs to the gray family of colors.
- What is the RGB value of #40384A?
- The RGB value is 64, 56, 74: 64 red, 56 green and 74 blue on a 0 to 255 scale.
- What is the complementary color of #40384A?
- The complementary color is #424A38, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40384A?
- White text. Black text has a contrast ratio of 1.88:1 and white text 11.16:1. WCAG asks for at least 4.5:1 for normal text.