#402174 color

#402174 rgb(64, 33, 116)
Shades of purple

The hex color #402174 is a dark, moderate violet.

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

Its hue angle is 262°, with 56% saturation and 29% lightness. For print, the CMYK equivalent is 45% cyan, 72% magenta, 0% yellow and 55% black.

The closest named color is Explorer of the Galaxies (#3A1F76), a difference of 1.4 ΔE, which is barely visible.

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

#402174 color codes

HEX#402174
RGBrgb(64, 33, 116)
RGB percentrgb(25.1%, 12.9%, 45.5%)
HSLhsl(262, 56%, 29%)
HSV / HSBhsv(262, 72%, 45%)
CMYKcmyk(45%, 72%, 0%, 55%)
CIE LABlab(21.72, 34.37, -42.4)
CIE LCHlch(21.72, 54.58, 309.03)
CIE XYZxyz(5.81, 3.439, 16.877)
Decimal4202868
Short hexNone (no 3-digit form)

Color harmonies

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

CSS examples

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

Similar colors

Closest common color name: Indigo.

Questions

What color is #402174?
#402174 is a dark, moderate violet, closest to the named color Explorer of the Galaxies. It belongs to the purple family of colors.
What is the RGB value of #402174?
The RGB value is 64, 33, 116: 64 red, 33 green and 116 blue on a 0 to 255 scale.
What is the complementary color of #402174?
The complementary color is #557421, found by rotating the hue 180° on the color wheel.
Is black or white text better on #402174?
White text. Black text has a contrast ratio of 1.69:1 and white text 12.44:1. WCAG asks for at least 4.5:1 for normal text.