#40394A color
The hex color #40394A is a dark, grayish violet.
In the RGB color model it is made of 25.1% red, 22.4% green and 29% blue (64, 57, 74).
Its hue angle is 265°, with 13% saturation and 26% lightness. For print, the CMYK equivalent is 14% cyan, 23% magenta, 0% yellow and 71% black.
The closest named color is Royal Decree (#403547), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.04:1).
#40394A color codes
| HEX | #40394A | |
|---|---|---|
| RGB | rgb(64, 57, 74) | |
| RGB percent | rgb(25.1%, 22.4%, 29%) | |
| HSL | hsl(265, 13%, 26%) | |
| HSV / HSB | hsv(265, 23%, 29%) | |
| CMYK | cmyk(14%, 23%, 0%, 71%) | |
| CIE LAB | lab(25.29, 7, -9.28) | |
| CIE LCH | lch(25.29, 11.63, 307.02) | |
| CIE XYZ | xyz(4.813, 4.511, 7.094) | |
| Decimal | 4208970 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40394A, 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 #40394A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.9:1 | Fail | Fail | Fail |
| Sample text | 11.04:1 | Pass | Pass | Pass |
| #40394A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.04:1 | Pass | Pass | Pass |
| Sample text | 1.9: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 #40394A looks to people with the most common types of color vision deficiency.
#363c4bProtanopia
no red cones#373c49Deuteranopia
no green cones#3f3b3fTritanopia
no blue cones#3c3c3cAchromatopsia
no color vision
CSS examples
.background { background-color: #40394a; }
.text { color: #40394a; }
.border { border: 2px solid #40394a; }
.transparent { background-color: rgb(64 57 74 / 50%); }
.gradient { background: linear-gradient(to right, #40394a, #49394a); }
Similar colors
#403547Royal Decree#413d4bItalian Grape#42364cCall It a Night#393540Professor Plum#3f354fMaharaja#333344Shuriken#4f4554Black Magic#35343fWitches Cauldron
Closest common color name: Eggplant.
Questions
- What color is #40394A?
- #40394A 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 #40394A?
- The RGB value is 64, 57, 74: 64 red, 57 green and 74 blue on a 0 to 255 scale.
- What is the complementary color of #40394A?
- The complementary color is #434A39, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40394A?
- White text. Black text has a contrast ratio of 1.9:1 and white text 11.04:1. WCAG asks for at least 4.5:1 for normal text.