#31273B color
The hex color #31273B is a very dark, grayish violet.
In the RGB color model it is made of 19.2% red, 15.3% green and 23.1% blue (49, 39, 59).
Its hue angle is 270°, with 20% saturation and 19% lightness. For print, the CMYK equivalent is 17% cyan, 34% magenta, 0% yellow and 77% black.
The closest named color is Royal Decree (#403547), a difference of 4.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 14.15:1).
#31273B color codes
| HEX | #31273B | |
|---|---|---|
| RGB | rgb(49, 39, 59) | |
| RGB percent | rgb(19.2%, 15.3%, 23.1%) | |
| HSL | hsl(270, 20%, 19%) | |
| HSV / HSB | hsv(270, 34%, 23%) | |
| CMYK | cmyk(17%, 34%, 0%, 77%) | |
| CIE LAB | lab(17.55, 9.46, -11.08) | |
| CIE LCH | lch(17.55, 14.57, 310.49) | |
| CIE XYZ | xyz(2.781, 2.42, 4.457) | |
| Decimal | 3221307 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31273B, 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 #31273B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.48:1 | Fail | Fail | Fail |
| Sample text | 14.15:1 | Pass | Pass | Pass |
| #31273B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.15:1 | Pass | Pass | Pass |
| Sample text | 1.48: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 #31273B looks to people with the most common types of color vision deficiency.
#232b3cProtanopia
no red cones#252b3aDeuteranopia
no green cones#302a2eTritanopia
no blue cones#2b2b2bAchromatopsia
no color vision
CSS examples
.background { background-color: #31273b; }
.text { color: #31273b; }
.border { border: 2px solid #31273b; }
.transparent { background-color: rgb(49 39 59 / 50%); }
.gradient { background: linear-gradient(to right, #31273b, #3b273b); }
Similar colors
#403547Royal Decree#42364cCall It a Night#3f354fMaharaja#3c2f4eSanctum of Shadows#2a2243Midnight Velvet#222233Black Velvet#2c2e47Midnight Masquerade#342931Melanzane
Closest common color name: Dark Purple.
Questions
- What color is #31273B?
- #31273B is a very dark, grayish violet, closest to the named color Royal Decree. It belongs to the purple family of colors.
- What is the RGB value of #31273B?
- The RGB value is 49, 39, 59: 49 red, 39 green and 59 blue on a 0 to 255 scale.
- What is the complementary color of #31273B?
- The complementary color is #313B27, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31273B?
- White text. Black text has a contrast ratio of 1.48:1 and white text 14.15:1. WCAG asks for at least 4.5:1 for normal text.