#312E4D color
The hex color #312E4D is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 18% green and 30.2% blue (49, 46, 77).
Its hue angle is 246°, with 25% saturation and 24% lightness. For print, the CMYK equivalent is 36% cyan, 40% magenta, 0% yellow and 70% black.
The closest named color is Midnight Pie (#372D52), a difference of 3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 12.89:1).
#312E4D color codes
| HEX | #312E4D | |
|---|---|---|
| RGB | rgb(49, 46, 77) | |
| RGB percent | rgb(19.2%, 18%, 30.2%) | |
| HSL | hsl(246, 25%, 24%) | |
| HSV / HSB | hsv(246, 40%, 30%) | |
| CMYK | cmyk(36%, 40%, 0%, 70%) | |
| CIE LAB | lab(20.61, 9.86, -18.64) | |
| CIE LCH | lch(20.61, 21.09, 297.88) | |
| CIE XYZ | xyz(3.583, 3.143, 7.438) | |
| Decimal | 3223117 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312E4D, 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 #312E4D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.63:1 | Fail | Fail | Fail |
| Sample text | 12.89:1 | Pass | Pass | Pass |
| #312E4D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 12.89:1 | Pass | Pass | Pass |
| Sample text | 1.63: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 #312E4D looks to people with the most common types of color vision deficiency.
#25324eProtanopia
no red cones#24314cDeuteranopia
no green cones#2a3439Tritanopia
no blue cones#323232Achromatopsia
no color vision
CSS examples
.background { background-color: #312e4d; }
.text { color: #312e4d; }
.border { border: 2px solid #312e4d; }
.transparent { background-color: rgb(49 46 77 / 50%); }
.gradient { background: linear-gradient(to right, #312e4d, #402e4d); }
Similar colors
#372d52Midnight Pie#2c2e47Midnight Masquerade#322c56Purple Noir#3c2f4eSanctum of Shadows#2c2c57Deep Sea Base#2a2243Midnight Velvet#222244Black Market#3f354fMaharaja
Closest common color name: Dark Purple.
Questions
- What color is #312E4D?
- #312E4D 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 #312E4D?
- The RGB value is 49, 46, 77: 49 red, 46 green and 77 blue on a 0 to 255 scale.
- What is the complementary color of #312E4D?
- The complementary color is #4A4D2E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312E4D?
- White text. Black text has a contrast ratio of 1.63:1 and white text 12.89:1. WCAG asks for at least 4.5:1 for normal text.