#313159 color
The hex color #313159 is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 19.2% green and 34.9% blue (49, 49, 89).
Its hue angle is 240°, with 29% saturation and 27% lightness. For print, the CMYK equivalent is 45% cyan, 45% magenta, 0% yellow and 65% black.
The closest named color is Deep Sea Base (#2C2C57), a difference of 1.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.25:1).
#313159 color codes
| HEX | #313159 | |
|---|---|---|
| RGB | rgb(49, 49, 89) | |
| RGB percent | rgb(19.2%, 19.2%, 34.9%) | |
| HSL | hsl(240, 29%, 27%) | |
| HSV / HSB | hsv(240, 45%, 35%) | |
| CMYK | cmyk(45%, 45%, 0%, 65%) | |
| CIE LAB | lab(22.2, 11.67, -24.13) | |
| CIE LCH | lch(22.2, 26.8, 295.8) | |
| CIE XYZ | xyz(4.168, 3.571, 9.919) | |
| Decimal | 3223897 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313159, 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 #313159 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.71:1 | Fail | Fail | Fail |
| Sample text | 12.25:1 | Pass | Pass | Pass |
| #313159 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.25: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 #313159 looks to people with the most common types of color vision deficiency.
#23375bProtanopia
no red cones#213458Deuteranopia
no green cones#253940Tritanopia
no blue cones#353535Achromatopsia
no color vision
CSS examples
.background { background-color: #313159; }
.text { color: #313159; }
.border { border: 2px solid #313159; }
.transparent { background-color: rgb(49 49 89 / 50%); }
.gradient { background: linear-gradient(to right, #313159, #453159); }
Similar colors
#2c2c57Deep Sea Base#2e305eGalaxea#322c56Purple Noir#2b3458Midnight Escapade#372d52Midnight Pie#2a2551Pāua#3d3d63Storm Is Coming#1d2951Space Cadet
Closest common color name: Oxford Blue.
Questions
- What color is #313159?
- #313159 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 #313159?
- The RGB value is 49, 49, 89: 49 red, 49 green and 89 blue on a 0 to 255 scale.
- What is the complementary color of #313159?
- The complementary color is #595931, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313159?
- White text. Black text has a contrast ratio of 1.71:1 and white text 12.25:1. WCAG asks for at least 4.5:1 for normal text.