#312D4F color
The hex color #312D4F is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 17.6% green and 31% blue (49, 45, 79).
Its hue angle is 247°, with 27% saturation and 24% lightness. For print, the CMYK equivalent is 38% cyan, 43% magenta, 0% yellow and 69% black.
The closest named color is Midnight Pie (#372D52), a difference of 2.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.97:1).
#312D4F color codes
| HEX | #312D4F | |
|---|---|---|
| RGB | rgb(49, 45, 79) | |
| RGB percent | rgb(19.2%, 17.6%, 31%) | |
| HSL | hsl(247, 27%, 24%) | |
| HSV / HSB | hsv(247, 43%, 31%) | |
| CMYK | cmyk(38%, 43%, 0%, 69%) | |
| CIE LAB | lab(20.42, 11.19, -20.28) | |
| CIE LCH | lch(20.42, 23.17, 298.89) | |
| CIE XYZ | xyz(3.616, 3.094, 7.802) | |
| Decimal | 3222863 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312D4F, 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 #312D4F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.62:1 | Fail | Fail | Fail |
| Sample text | 12.97:1 | Pass | Pass | Pass |
| #312D4F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.97:1 | Pass | Pass | Pass |
| Sample text | 1.62: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 #312D4F looks to people with the most common types of color vision deficiency.
#223250Protanopia
no red cones#22304eDeuteranopia
no green cones#29333aTritanopia
no blue cones#313131Achromatopsia
no color vision
CSS examples
.background { background-color: #312d4f; }
.text { color: #312d4f; }
.border { border: 2px solid #312d4f; }
.transparent { background-color: rgb(49 45 79 / 50%); }
.gradient { background: linear-gradient(to right, #312d4f, #422d4f); }
Similar colors
#372d52Midnight Pie#322c56Purple Noir#2c2c57Deep Sea Base#2a2243Midnight Velvet#3c2f4eSanctum of Shadows#2a2551Pāua#222244Black Market#2c2e47Midnight Masquerade
Closest common color name: Dark Purple.
Questions
- What color is #312D4F?
- #312D4F is a dark, desaturated blue, closest to the named color Midnight Pie. It belongs to the blue family of colors.
- What is the RGB value of #312D4F?
- The RGB value is 49, 45, 79: 49 red, 45 green and 79 blue on a 0 to 255 scale.
- What is the complementary color of #312D4F?
- The complementary color is #4B4F2D, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312D4F?
- White text. Black text has a contrast ratio of 1.62:1 and white text 12.97:1. WCAG asks for at least 4.5:1 for normal text.