#31234A color

#31234A rgb(49, 35, 74)
Shades of purple

The hex color #31234A is a dark, desaturated violet.

In the RGB color model it is made of 19.2% red, 13.7% green and 29% blue (49, 35, 74).

Its hue angle is 262°, with 36% saturation and 21% lightness. For print, the CMYK equivalent is 34% cyan, 53% magenta, 0% yellow and 71% black.

The closest named color is Midnight Velvet (#2A2243), a difference of 2.6 ΔE, a small difference.

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

#31234A color codes

HEX#31234A
RGBrgb(49, 35, 74)
RGB percentrgb(19.2%, 13.7%, 29%)
HSLhsl(262, 36%, 21%)
HSV / HSBhsv(262, 53%, 29%)
CMYKcmyk(34%, 53%, 0%, 71%)
CIE LABlab(17.22, 16.61, -21.94)
CIE LCHlch(17.22, 27.52, 307.12)
CIE XYZxyz(3.103, 2.349, 6.767)
Decimal3220298
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #31234A, 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 #31234ARatioAAAAAAA large
Sample text1.47:1FailFailFail
Sample text14.29:1PassPassPass
#31234A as text onRatioAAAAAAA large
Sample text14.29:1PassPassPass
Sample text1.47: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 #31234A looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #31234a; }
.text { color: #31234a; }
.border { border: 2px solid #31234a; }
.transparent { background-color: rgb(49 35 74 / 50%); }
.gradient { background: linear-gradient(to right, #31234a, #44234a); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Purple.

Questions

What color is #31234A?
#31234A is a dark, desaturated violet, closest to the named color Midnight Velvet. It belongs to the purple family of colors.
What is the RGB value of #31234A?
The RGB value is 49, 35, 74: 49 red, 35 green and 74 blue on a 0 to 255 scale.
What is the complementary color of #31234A?
The complementary color is #3C4A23, found by rotating the hue 180° on the color wheel.
Is black or white text better on #31234A?
White text. Black text has a contrast ratio of 1.47:1 and white text 14.29:1. WCAG asks for at least 4.5:1 for normal text.