#310731 color
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 | |
|---|---|---|
| RGB | rgb(49, 7, 49) | |
| RGB percent | rgb(19.2%, 2.7%, 19.2%) | |
| HSL | hsl(300, 75%, 11%) | |
| HSV / HSB | hsv(300, 86%, 19%) | |
| CMYK | cmyk(0%, 86%, 0%, 81%) | |
| CIE LAB | lab(9.21, 26.95, -16.96) | |
| CIE LCH | lch(9.21, 31.84, 327.82) | |
| CIE XYZ | xyz(1.897, 1.027, 3.003) | |
| Decimal | 3213105 | |
| Short hex | None (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 #310731 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.21:1 | Fail | Fail | Fail |
| Sample text | 17.42:1 | Pass | Pass | Pass |
| #310731 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.42:1 | Pass | Pass | Pass |
| Sample text | 1.21:1 | Fail | Fail | Fail |
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.
#021632Protanopia
no red cones#121c30Deuteranopia
no green cones#330d1bTritanopia
no blue cones#1a1a1aAchromatopsia
no color vision
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); }
Similar colors
#2b0f2eDark Prom Queen#3b193fCreatures of the Night#220022Black Sabbath#441144Velvet Cosmos#391531Nightly Voyager#220033Coal Mine#3f012cDark Sanctuary#330022Vienna Roast
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.