#40172C color

#40172C rgb(64, 23, 44)
Shades of purple

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
RGBrgb(64, 23, 44)
RGB percentrgb(25.1%, 9%, 17.3%)
HSLhsl(329, 47%, 17%)
HSV / HSBhsv(329, 64%, 25%)
CMYKcmyk(0%, 64%, 31%, 75%)
CIE LABlab(14.87, 22.73, -4.33)
CIE LCHlch(14.87, 23.14, 349.22)
CIE XYZxyz(2.875, 1.885, 2.595)
Decimal4200236
Short hexNone (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 #40172CRatioAAAAAAA large
Sample text1.38:1FailFailFail
Sample text15.25:1PassPassPass
#40172C as text onRatioAAAAAAA large
Sample text15.25:1PassPassPass
Sample text1.38:1FailFailFail

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.

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); }
Background
Text color
Border

Similar colors

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.