#402E74 color

#402E74 rgb(64, 46, 116)
Shades of purple

The hex color #402E74 is a dark, desaturated violet.

In the RGB color model it is made of 25.1% red, 18% green and 45.5% blue (64, 46, 116).

Its hue angle is 255°, with 43% saturation and 32% lightness. For print, the CMYK equivalent is 45% cyan, 60% magenta, 0% yellow and 55% black.

The closest named color is Her Highness (#432E6F), a difference of 1.5 ΔE, which is barely visible.

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

#402E74 color codes

HEX#402E74
RGBrgb(64, 46, 116)
RGB percentrgb(25.1%, 18%, 45.5%)
HSLhsl(255, 43%, 32%)
HSV / HSBhsv(255, 60%, 45%)
CMYKcmyk(45%, 60%, 0%, 55%)
CIE LABlab(24.65, 26.5, -37.65)
CIE LCHlch(24.65, 46.04, 305.15)
CIE XYZxyz(6.243, 4.305, 17.022)
Decimal4206196
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #402E74, 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 #402E74RatioAAAAAAA large
Sample text1.86:1FailFailFail
Sample text11.28:1PassPassPass
#402E74 as text onRatioAAAAAAA large
Sample text11.28:1PassPassPass
Sample text1.86: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 #402E74 looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #402e74; }
.text { color: #402e74; }
.border { border: 2px solid #402e74; }
.transparent { background-color: rgb(64 46 116 / 50%); }
.gradient { background: linear-gradient(to right, #402e74, #632e74); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Slate Blue.

Questions

What color is #402E74?
#402E74 is a dark, desaturated violet, closest to the named color Her Highness. It belongs to the purple family of colors.
What is the RGB value of #402E74?
The RGB value is 64, 46, 116: 64 red, 46 green and 116 blue on a 0 to 255 scale.
What is the complementary color of #402E74?
The complementary color is #62742E, found by rotating the hue 180° on the color wheel.
Is black or white text better on #402E74?
White text. Black text has a contrast ratio of 1.86:1 and white text 11.28:1. WCAG asks for at least 4.5:1 for normal text.