#40182F color
The hex color #40182F is a very dark, desaturated rose.
In the RGB color model it is made of 25.1% red, 9.4% green and 18.4% blue (64, 24, 47).
Its hue angle is 326°, with 45% saturation and 17% lightness. For print, the CMYK equivalent is 0% cyan, 63% magenta, 27% yellow and 75% black.
The closest named color is Blackberry (#43182F), a difference of 0.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 15.11:1).
#40182F color codes
| HEX | #40182F | |
|---|---|---|
| RGB | rgb(64, 24, 47) | |
| RGB percent | rgb(25.1%, 9.4%, 18.4%) | |
| HSL | hsl(326, 45%, 17%) | |
| HSV / HSB | hsv(326, 63%, 25%) | |
| CMYK | cmyk(0%, 63%, 27%, 75%) | |
| CIE LAB | lab(15.22, 22.65, -5.97) | |
| CIE LCH | lch(15.22, 23.43, 345.23) | |
| CIE XYZ | xyz(2.954, 1.949, 2.909) | |
| Decimal | 4200495 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40182F, 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 #40182F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.39:1 | Fail | Fail | Fail |
| Sample text | 15.11:1 | Pass | Pass | Pass |
| #40182F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.11:1 | Pass | Pass | Pass |
| Sample text | 1.39: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 #40182F looks to people with the most common types of color vision deficiency.
#1c2230Protanopia
no red cones#27292eDeuteranopia
no green cones#441721Tritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #40182f; }
.text { color: #40182f; }
.border { border: 2px solid #40182f; }
.transparent { background-color: rgb(64 24 47 / 50%); }
.gradient { background: linear-gradient(to right, #40182f, #40181b); }
Similar colors
#43182fBlackberry#391531Nightly Voyager#3e1825Black-Hearted#3c1421Chocolate Kiss#44232fCastro#441122What We Do in the Shadows#3f012cDark Sanctuary#330022Vienna Roast
Closest common color name: Dark Purple.
Questions
- What color is #40182F?
- #40182F is a very dark, desaturated rose, closest to the named color Blackberry. It belongs to the purple family of colors.
- What is the RGB value of #40182F?
- The RGB value is 64, 24, 47: 64 red, 24 green and 47 blue on a 0 to 255 scale.
- What is the complementary color of #40182F?
- The complementary color is #184029, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40182F?
- White text. Black text has a contrast ratio of 1.39:1 and white text 15.11:1. WCAG asks for at least 4.5:1 for normal text.