#40172C color
The hex color #40172C is a very dark, desaturated rose.
In the RGB color model it is made of 25.1% red, 9% green and 17.3% blue (64, 23, 44).
Its hue angle is 329°, with 47% saturation and 17% lightness. For print, the CMYK equivalent is 0% cyan, 64% magenta, 31% 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.25:1).
#40172C color codes
| HEX | #40172C | |
|---|---|---|
| RGB | rgb(64, 23, 44) | |
| RGB percent | rgb(25.1%, 9%, 17.3%) | |
| HSL | hsl(329, 47%, 17%) | |
| HSV / HSB | hsv(329, 64%, 25%) | |
| CMYK | cmyk(0%, 64%, 31%, 75%) | |
| CIE LAB | lab(14.87, 22.73, -4.33) | |
| CIE LCH | lch(14.87, 23.14, 349.22) | |
| CIE XYZ | xyz(2.875, 1.885, 2.595) | |
| Decimal | 4200236 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40172C, 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 #40172C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.38:1 | Fail | Fail | Fail |
| Sample text | 15.25:1 | Pass | Pass | Pass |
| #40172C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.25:1 | Pass | Pass | Pass |
| Sample text | 1.38: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 #40172C looks to people with the most common types of color vision deficiency.
#1c212dProtanopia
no red cones#27282bDeuteranopia
no green cones#45151fTritanopia
no blue cones#252525Achromatopsia
no color vision
CSS examples
.background { background-color: #40172c; }
.text { color: #40172c; }
.border { border: 2px solid #40172c; }
.transparent { background-color: rgb(64 23 44 / 50%); }
.gradient { background: linear-gradient(to right, #40172c, #401718); }
Similar colors
#43182fBlackberry#3e1825Black-Hearted#3c1421Chocolate Kiss#391531Nightly Voyager#441122What We Do in the Shadows#44232fCastro#3b1921Bruised Plum#3f012cDark Sanctuary
Closest common color name: Dark Purple.
Questions
- What color is #40172C?
- #40172C 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 #40172C?
- The RGB value is 64, 23, 44: 64 red, 23 green and 44 blue on a 0 to 255 scale.
- What is the complementary color of #40172C?
- The complementary color is #17402B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40172C?
- White text. Black text has a contrast ratio of 1.38:1 and white text 15.25:1. WCAG asks for at least 4.5:1 for normal text.