#31154D color
The hex color #31154D is a very dark, moderate violet.
In the RGB color model it is made of 19.2% red, 8.2% green and 30.2% blue (49, 21, 77).
Its hue angle is 270°, with 57% saturation and 19% lightness. For print, the CMYK equivalent is 36% cyan, 73% magenta, 0% yellow and 70% black.
The closest named color is Fabric of Space (#341758), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.61:1).
#31154D color codes
| HEX | #31154D | |
|---|---|---|
| RGB | rgb(49, 21, 77) | |
| RGB percent | rgb(19.2%, 8.2%, 30.2%) | |
| HSL | hsl(270, 57%, 19%) | |
| HSV / HSB | hsv(270, 73%, 30%) | |
| CMYK | cmyk(36%, 73%, 0%, 70%) | |
| CIE LAB | lab(13.97, 26.58, -29.2) | |
| CIE LCH | lch(13.97, 39.49, 312.3) | |
| CIE XYZ | xyz(2.874, 1.725, 7.201) | |
| Decimal | 3216717 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31154D, 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 #31154D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.35:1 | Fail | Fail | Fail |
| Sample text | 15.61:1 | Pass | Pass | Pass |
| #31154D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.61:1 | Pass | Pass | Pass |
| Sample text | 1.35: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 #31154D looks to people with the most common types of color vision deficiency.
#00234fProtanopia
no red cones#03234cDeuteranopia
no green cones#2c212fTritanopia
no blue cones#242424Achromatopsia
no color vision
CSS examples
.background { background-color: #31154d; }
.text { color: #31154d; }
.border { border: 2px solid #31154d; }
.transparent { background-color: rgb(49 21 77 / 50%); }
.gradient { background: linear-gradient(to right, #31154d, #4d154d); }
Similar colors
#341758Fabric of Space#37115cWicked Purple#372354Stormy Night#431c53Plunged Into Darkness#2d135fVoldemort#231c4dSilent Orbit#3b0346Romanic Scene#330055Hollow Knight
Closest common color name: Dark Purple.
Questions
- What color is #31154D?
- #31154D is a very dark, moderate violet, closest to the named color Fabric of Space. It belongs to the purple family of colors.
- What is the RGB value of #31154D?
- The RGB value is 49, 21, 77: 49 red, 21 green and 77 blue on a 0 to 255 scale.
- What is the complementary color of #31154D?
- The complementary color is #314D15, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31154D?
- White text. Black text has a contrast ratio of 1.35:1 and white text 15.61:1. WCAG asks for at least 4.5:1 for normal text.