#331F4A color

#331F4A rgb(51, 31, 74)
Shades of purple

The hex color #331F4A is a dark, desaturated violet.

In the RGB color model it is made of 20% red, 12.2% green and 29% blue (51, 31, 74).

Its hue angle is 268°, with 41% saturation and 21% lightness. For print, the CMYK equivalent is 31% cyan, 58% magenta, 0% yellow and 71% black.

The closest named color is Stormy Night (#372354), a difference of 2.2 ΔE, a small difference.

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

#331F4A color codes

HEX#331F4A
RGBrgb(51, 31, 74)
RGB percentrgb(20%, 12.2%, 29%)
HSLhsl(268, 41%, 21%)
HSV / HSBhsv(268, 58%, 29%)
CMYKcmyk(31%, 58%, 0%, 71%)
CIE LABlab(16.4, 19.96, -23.24)
CIE LCHlch(16.4, 30.63, 310.66)
CIE XYZxyz(3.091, 2.178, 6.735)
Decimal3350346
Short hexNone (no 3-digit form)

Color harmonies

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

CSS examples

.background { background-color: #331f4a; }
.text { color: #331f4a; }
.border { border: 2px solid #331f4a; }
.transparent { background-color: rgb(51 31 74 / 50%); }
.gradient { background: linear-gradient(to right, #331f4a, #491f4a); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Purple.

Questions

What color is #331F4A?
#331F4A is a dark, desaturated violet, closest to the named color Stormy Night. It belongs to the purple family of colors.
What is the RGB value of #331F4A?
The RGB value is 51, 31, 74: 51 red, 31 green and 74 blue on a 0 to 255 scale.
What is the complementary color of #331F4A?
The complementary color is #364A1F, found by rotating the hue 180° on the color wheel.
Is black or white text better on #331F4A?
White text. Black text has a contrast ratio of 1.44:1 and white text 14.63:1. WCAG asks for at least 4.5:1 for normal text.