#310731 color

#310731 rgb(49, 7, 49)
Shades of black

The hex color #310731 is a very dark, moderate magenta.

In the RGB color model it is made of 19.2% red, 2.7% green and 19.2% blue (49, 7, 49).

Its hue angle is 300°, with 75% saturation and 11% lightness. For print, the CMYK equivalent is 0% cyan, 86% magenta, 0% yellow and 81% black.

The closest named color is Dark Prom Queen (#2B0F2E), a difference of 3.4 ΔE, a small difference.

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

#310731 color codes

HEX#310731
RGBrgb(49, 7, 49)
RGB percentrgb(19.2%, 2.7%, 19.2%)
HSLhsl(300, 75%, 11%)
HSV / HSBhsv(300, 86%, 19%)
CMYKcmyk(0%, 86%, 0%, 81%)
CIE LABlab(9.21, 26.95, -16.96)
CIE LCHlch(9.21, 31.84, 327.82)
CIE XYZxyz(1.897, 1.027, 3.003)
Decimal3213105
Short hexNone (no 3-digit form)

Color harmonies

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

CSS examples

.background { background-color: #310731; }
.text { color: #310731; }
.border { border: 2px solid #310731; }
.transparent { background-color: rgb(49 7 49 / 50%); }
.gradient { background: linear-gradient(to right, #310731, #31071c); }
Background
Text color
Border

Similar colors

Closest common color name: Dark Purple.

Questions

What color is #310731?
#310731 is a very dark, moderate magenta, closest to the named color Dark Prom Queen. It belongs to the black family of colors.
What is the RGB value of #310731?
The RGB value is 49, 7, 49: 49 red, 7 green and 49 blue on a 0 to 255 scale.
What is the complementary color of #310731?
The complementary color is #073107, found by rotating the hue 180° on the color wheel.
Is black or white text better on #310731?
White text. Black text has a contrast ratio of 1.21:1 and white text 17.42:1. WCAG asks for at least 4.5:1 for normal text.