#31308E color
The hex color #31308E is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 18.8% green and 55.7% blue (49, 48, 142).
Its hue angle is 241°, with 49% saturation and 37% lightness. For print, the CMYK equivalent is 65% cyan, 66% magenta, 0% yellow and 44% black.
The closest named color is Perfect Dark (#313390), a difference of 0.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.8:1).
#31308E color codes
| HEX | #31308E | |
|---|---|---|
| RGB | rgb(49, 48, 142) | |
| RGB percent | rgb(19.2%, 18.8%, 55.7%) | |
| HSL | hsl(241, 49%, 37%) | |
| HSV / HSB | hsv(241, 66%, 56%) | |
| CMYK | cmyk(65%, 66%, 0%, 44%) | |
| CIE LAB | lab(25.92, 30.92, -51.99) | |
| CIE LCH | lch(25.92, 60.49, 300.74) | |
| CIE XYZ | xyz(7.204, 4.719, 26.117) | |
| Decimal | 3223694 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31308E, 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 #31308E | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.94:1 | Fail | Fail | Fail |
| Sample text | 10.8:1 | Pass | Pass | Pass |
| #31308E as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.8:1 | Pass | Pass | Pass |
| Sample text | 1.94: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 #31308E looks to people with the most common types of color vision deficiency.
#004191Protanopia
no red cones#00398cDeuteranopia
no green cones#00485aTritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #31308e; }
.text { color: #31308e; }
.border { border: 2px solid #31308e; }
.transparent { background-color: rgb(49 48 142 / 50%); }
.gradient { background: linear-gradient(to right, #31308e, #60308e); }
Similar colors
#313390Perfect Dark#2b3191Royal Night#333399Bluebell#2c319bDepths of Night#273287Intergalactic Highway#2d3796Liquid Denim#443388Majestic Eggplant#223382Deep Space Royal
Closest common color name: Egyptian Blue.
Questions
- What color is #31308E?
- #31308E is a dark, desaturated blue, closest to the named color Perfect Dark. It belongs to the blue family of colors.
- What is the RGB value of #31308E?
- The RGB value is 49, 48, 142: 49 red, 48 green and 142 blue on a 0 to 255 scale.
- What is the complementary color of #31308E?
- The complementary color is #8D8E30, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31308E?
- White text. Black text has a contrast ratio of 1.94:1 and white text 10.8:1. WCAG asks for at least 4.5:1 for normal text.