#313879 color
The hex color #313879 is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 22% green and 47.5% blue (49, 56, 121).
Its hue angle is 234°, with 42% saturation and 33% lightness. For print, the CMYK equivalent is 60% cyan, 54% magenta, 0% yellow and 53% black.
The closest named color is Good Karma (#333C76), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.65:1).
#313879 color codes
| HEX | #313879 | |
|---|---|---|
| RGB | rgb(49, 56, 121) | |
| RGB percent | rgb(19.2%, 22%, 47.5%) | |
| HSL | hsl(234, 42%, 33%) | |
| HSV / HSB | hsv(234, 60%, 47%) | |
| CMYK | cmyk(60%, 54%, 0%, 53%) | |
| CIE LAB | lab(26.34, 18.04, -38.18) | |
| CIE LCH | lch(26.34, 42.23, 295.29) | |
| CIE XYZ | xyz(6.131, 4.861, 18.701) | |
| Decimal | 3225721 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313879, 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 #313879 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.97:1 | Fail | Fail | Fail |
| Sample text | 10.65:1 | Pass | Pass | Pass |
| #313879 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.65:1 | Pass | Pass | Pass |
| Sample text | 1.97: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 #313879 looks to people with the most common types of color vision deficiency.
#14417bProtanopia
no red cones#063b78Deuteranopia
no green cones#044753Tritanopia
no blue cones#3e3e3eAchromatopsia
no color vision
CSS examples
.background { background-color: #313879; }
.text { color: #313879; }
.border { border: 2px solid #313879; }
.transparent { background-color: rgb(49 56 121 / 50%); }
.gradient { background: linear-gradient(to right, #313879, #4e3179); }
Similar colors
#333c76Good Karma#363e7dEvening Magic#223382Deep Space Royal#1c3378Twilight Express#273287Intergalactic Highway#3d4585Queen of the Night Shift#13336fAtlantic Navy#2c4170Napoleonic Blue
Closest common color name: Dark Slate Blue.
Questions
- What color is #313879?
- #313879 is a dark, desaturated blue, closest to the named color Good Karma. It belongs to the blue family of colors.
- What is the RGB value of #313879?
- The RGB value is 49, 56, 121: 49 red, 56 green and 121 blue on a 0 to 255 scale.
- What is the complementary color of #313879?
- The complementary color is #797231, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313879?
- White text. Black text has a contrast ratio of 1.97:1 and white text 10.65:1. WCAG asks for at least 4.5:1 for normal text.