#313157 color
The hex color #313157 is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 19.2% green and 34.1% blue (49, 49, 87).
Its hue angle is 240°, with 28% saturation and 27% lightness. For print, the CMYK equivalent is 44% cyan, 44% magenta, 0% yellow and 66% black.
The closest named color is Deep Sea Base (#2C2C57), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.3:1).
#313157 color codes
| HEX | #313157 | |
|---|---|---|
| RGB | rgb(49, 49, 87) | |
| RGB percent | rgb(19.2%, 19.2%, 34.1%) | |
| HSL | hsl(240, 28%, 27%) | |
| HSV / HSB | hsv(240, 44%, 34%) | |
| CMYK | cmyk(44%, 44%, 0%, 66%) | |
| CIE LAB | lab(22.08, 11, -23) | |
| CIE LCH | lch(22.08, 25.49, 295.57) | |
| CIE XYZ | xyz(4.085, 3.538, 9.483) | |
| Decimal | 3223895 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313157, 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 #313157 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.71:1 | Fail | Fail | Fail |
| Sample text | 12.3:1 | Pass | Pass | Pass |
| #313157 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.3:1 | Pass | Pass | Pass |
| Sample text | 1.71: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 #313157 looks to people with the most common types of color vision deficiency.
#243658Protanopia
no red cones#223456Deuteranopia
no green cones#26393fTritanopia
no blue cones#353535Achromatopsia
no color vision
CSS examples
.background { background-color: #313157; }
.text { color: #313157; }
.border { border: 2px solid #313157; }
.transparent { background-color: rgb(49 49 87 / 50%); }
.gradient { background: linear-gradient(to right, #313157, #443157); }
Similar colors
#2c2c57Deep Sea Base#322c56Purple Noir#2e305eGalaxea#2b3458Midnight Escapade#372d52Midnight Pie#3d3d63Storm Is Coming#2a2551Pāua#2e3858Mediaeval Blue
Closest common color name: Oxford Blue.
Questions
- What color is #313157?
- #313157 is a dark, desaturated blue, closest to the named color Deep Sea Base. It belongs to the blue family of colors.
- What is the RGB value of #313157?
- The RGB value is 49, 49, 87: 49 red, 49 green and 87 blue on a 0 to 255 scale.
- What is the complementary color of #313157?
- The complementary color is #575731, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313157?
- White text. Black text has a contrast ratio of 1.71:1 and white text 12.3:1. WCAG asks for at least 4.5:1 for normal text.