#313347 color
The hex color #313347 is a dark, grayish blue.
In the RGB color model it is made of 19.2% red, 20% green and 27.8% blue (49, 51, 71).
Its hue angle is 235°, with 18% saturation and 24% lightness. For print, the CMYK equivalent is 31% cyan, 28% magenta, 0% yellow and 72% black.
The closest named color is Shuriken (#333344), a difference of 1.5 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 12.39:1).
#313347 color codes
| HEX | #313347 | |
|---|---|---|
| RGB | rgb(49, 51, 71) | |
| RGB percent | rgb(19.2%, 20%, 27.8%) | |
| HSL | hsl(235, 18%, 24%) | |
| HSV / HSB | hsv(235, 31%, 28%) | |
| CMYK | cmyk(31%, 28%, 0%, 72%) | |
| CIE LAB | lab(21.86, 4.55, -12.66) | |
| CIE LCH | lch(21.86, 13.46, 289.77) | |
| CIE XYZ | xyz(3.587, 3.475, 6.442) | |
| Decimal | 3224391 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #313347, 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 #313347 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.7:1 | Fail | Fail | Fail |
| Sample text | 12.39:1 | Pass | Pass | Pass |
| #313347 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.39:1 | Pass | Pass | Pass |
| Sample text | 1.7: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 #313347 looks to people with the most common types of color vision deficiency.
#2d3548Protanopia
no red cones#2c3446Deuteranopia
no green cones#2c373aTritanopia
no blue cones#343434Achromatopsia
no color vision
CSS examples
.background { background-color: #313347; }
.text { color: #313347; }
.border { border: 2px solid #313347; }
.transparent { background-color: rgb(49 51 71 / 50%); }
.gradient { background: linear-gradient(to right, #313347, #3a3147); }
Similar colors
#333344Shuriken#2c2e47Midnight Masquerade#303543Total Eclipse#35343fWitches Cauldron#21263aMidnight Express#393540Professor Plum#413d4bItalian Grape#2e3858Mediaeval Blue
Closest common color name: Oxford Blue.
Questions
- What color is #313347?
- #313347 is a dark, grayish blue, closest to the named color Shuriken. It belongs to the blue family of colors.
- What is the RGB value of #313347?
- The RGB value is 49, 51, 71: 49 red, 51 green and 71 blue on a 0 to 255 scale.
- What is the complementary color of #313347?
- The complementary color is #474531, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #313347?
- White text. Black text has a contrast ratio of 1.7:1 and white text 12.39:1. WCAG asks for at least 4.5:1 for normal text.