#402045 color

#402045 rgb(64, 32, 69)
Shades of purple

The hex color #402045 is a very dark, desaturated magenta.

In the RGB color model it is made of 25.1% red, 12.5% green and 27.1% blue (64, 32, 69).

Its hue angle is 292°, with 37% saturation and 20% lightness. For print, the CMYK equivalent is 7% cyan, 54% magenta, 0% yellow and 73% black.

The closest named color is Purple Void (#442244), a difference of 1.6 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 13.9:1).

#402045 color codes

HEX#402045
RGBrgb(64, 32, 69)
RGB percentrgb(25.1%, 12.5%, 27.1%)
HSLhsl(292, 37%, 20%)
HSV / HSBhsv(292, 54%, 27%)
CMYKcmyk(7%, 54%, 0%, 73%)
CIE LABlab(18.16, 22.31, -16.91)
CIE LCHlch(18.16, 27.99, 322.84)
CIE XYZxyz(3.705, 2.553, 5.927)
Decimal4202565
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #402045, 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 #402045RatioAAAAAAA large
Sample text1.51:1FailFailFail
Sample text13.9:1PassPassPass
#402045 as text onRatioAAAAAAA large
Sample text13.9:1PassPassPass
Sample text1.51: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 #402045 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #402045; }
.text { color: #402045; }
.border { border: 2px solid #402045; }
.transparent { background-color: rgb(64 32 69 / 50%); }
.gradient { background: linear-gradient(to right, #402045, #452038); }
Background
Text color
Border

Similar colors

Questions

What color is #402045?
#402045 is a very dark, desaturated magenta, closest to the named color Purple Void. It belongs to the purple family of colors.
What is the RGB value of #402045?
The RGB value is 64, 32, 69: 64 red, 32 green and 69 blue on a 0 to 255 scale.
What is the complementary color of #402045?
The complementary color is #254520, found by rotating the hue 180° on the color wheel.
Is black or white text better on #402045?
White text. Black text has a contrast ratio of 1.51:1 and white text 13.9:1. WCAG asks for at least 4.5:1 for normal text.