#402023 color
The hex color #402023 is a very dark, desaturated red.
In the RGB color model it is made of 25.1% red, 12.5% green and 13.7% blue (64, 32, 35).
Its hue angle is 354°, with 33% saturation and 19% lightness. For print, the CMYK equivalent is 0% cyan, 50% magenta, 45% yellow and 75% black.
The closest named color is Bruised Plum (#3B1921), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.49:1).
#402023 color codes
| HEX | #402023 | |
|---|---|---|
| RGB | rgb(64, 32, 35) | |
| RGB percent | rgb(25.1%, 12.5%, 13.7%) | |
| HSL | hsl(354, 33%, 19%) | |
| HSV / HSB | hsv(354, 50%, 25%) | |
| CMYK | cmyk(0%, 50%, 45%, 75%) | |
| CIE LAB | lab(16.72, 15.81, 4.83) | |
| CIE LCH | lch(16.72, 16.53, 16.99) | |
| CIE XYZ | xyz(2.934, 2.245, 1.868) | |
| Decimal | 4202531 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #402023, 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 #402023 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.45:1 | Fail | Fail | Fail |
| Sample text | 14.49:1 | Pass | Pass | Pass |
| #402023 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.49:1 | Pass | Pass | Pass |
| Sample text | 1.45: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 #402023 looks to people with the most common types of color vision deficiency.
#262523Protanopia
no red cones#2e2c22Deuteranopia
no green cones#451c21Tritanopia
no blue cones#292929Achromatopsia
no color vision
CSS examples
.background { background-color: #402023; }
.text { color: #402023; }
.border { border: 2px solid #402023; }
.transparent { background-color: rgb(64 32 35 / 50%); }
.gradient { background: linear-gradient(to right, #402023, #402d20); }
Similar colors
#3b1921Bruised Plum#4a2d2fDark Roast#4a2c2aBrown Coffee#44232fCastro#3e1825Black-Hearted#492a34Wine Tasting#522426Lonestar#3c1421Chocolate Kiss
Closest common color name: Espresso.
Questions
- What color is #402023?
- #402023 is a very dark, desaturated red, closest to the named color Bruised Plum. It belongs to the red family of colors.
- What is the RGB value of #402023?
- The RGB value is 64, 32, 35: 64 red, 32 green and 35 blue on a 0 to 255 scale.
- What is the complementary color of #402023?
- The complementary color is #20403D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #402023?
- White text. Black text has a contrast ratio of 1.45:1 and white text 14.49:1. WCAG asks for at least 4.5:1 for normal text.