#31285A color
The hex color #31285A is a dark, desaturated violet.
In the RGB color model it is made of 19.2% red, 15.7% green and 35.3% blue (49, 40, 90).
Its hue angle is 251°, with 38% saturation and 25% lightness. For print, the CMYK equivalent is 46% cyan, 56% magenta, 0% yellow and 65% black.
The closest named color is Pāua (#2A2551), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.28:1).
#31285A color codes
| HEX | #31285A | |
|---|---|---|
| RGB | rgb(49, 40, 90) | |
| RGB percent | rgb(19.2%, 15.7%, 35.3%) | |
| HSL | hsl(251, 38%, 25%) | |
| HSV / HSB | hsv(251, 56%, 35%) | |
| CMYK | cmyk(46%, 56%, 0%, 65%) | |
| CIE LAB | lab(19.67, 18.25, -28.81) | |
| CIE LCH | lch(19.67, 34.11, 302.35) | |
| CIE XYZ | xyz(3.87, 2.909, 10.028) | |
| Decimal | 3221594 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31285A, 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 #31285A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.58:1 | Fail | Fail | Fail |
| Sample text | 13.28:1 | Pass | Pass | Pass |
| #31285A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.28:1 | Pass | Pass | Pass |
| Sample text | 1.58: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 #31285A looks to people with the most common types of color vision deficiency.
#12315cProtanopia
no red cones#122e59Deuteranopia
no green cones#25323cTritanopia
no blue cones#303030Achromatopsia
no color vision
CSS examples
.background { background-color: #31285a; }
.text { color: #31285a; }
.border { border: 2px solid #31285a; }
.transparent { background-color: rgb(49 40 90 / 50%); }
.gradient { background: linear-gradient(to right, #31285a, #4a285a); }
Similar colors
#2a2551Pāua#322c56Purple Noir#2c2c57Deep Sea Base#222255Spacescape#372354Stormy Night#2e305eGalaxea#2e2364Indie Go#231c4dSilent Orbit
Closest common color name: Midnight Blue.
Questions
- What color is #31285A?
- #31285A is a dark, desaturated violet, closest to the named color Pāua. It belongs to the blue family of colors.
- What is the RGB value of #31285A?
- The RGB value is 49, 40, 90: 49 red, 40 green and 90 blue on a 0 to 255 scale.
- What is the complementary color of #31285A?
- The complementary color is #515A28, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31285A?
- White text. Black text has a contrast ratio of 1.58:1 and white text 13.28:1. WCAG asks for at least 4.5:1 for normal text.