#312E7A color
The hex color #312E7A is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 18% green and 47.8% blue (49, 46, 122).
Its hue angle is 242°, with 45% saturation and 33% lightness. For print, the CMYK equivalent is 60% cyan, 62% magenta, 0% yellow and 52% black.
The closest named color is Intergalactic Highway (#273287), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.65:1).
#312E7A color codes
| HEX | #312E7A | |
|---|---|---|
| RGB | rgb(49, 46, 122) | |
| RGB percent | rgb(19.2%, 18%, 47.8%) | |
| HSL | hsl(242, 45%, 33%) | |
| HSV / HSB | hsv(242, 62%, 48%) | |
| CMYK | cmyk(60%, 62%, 0%, 52%) | |
| CIE LAB | lab(23.71, 25.18, -43.06) | |
| CIE LCH | lch(23.71, 49.88, 300.32) | |
| CIE XYZ | xyz(5.755, 4.012, 18.88) | |
| Decimal | 3223162 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #312E7A, 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 #312E7A | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.8:1 | Fail | Fail | Fail |
| Sample text | 11.65:1 | Pass | Pass | Pass |
| #312E7A as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.65:1 | Pass | Pass | Pass |
| Sample text | 1.8: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 #312E7A looks to people with the most common types of color vision deficiency.
#003b7cProtanopia
no red cones#003578Deuteranopia
no green cones#06404fTritanopia
no blue cones#383838Achromatopsia
no color vision
CSS examples
.background { background-color: #312e7a; }
.text { color: #312e7a; }
.border { border: 2px solid #312e7a; }
.transparent { background-color: rgb(49 46 122 / 50%); }
.gradient { background: linear-gradient(to right, #312e7a, #572e7a); }
Similar colors
#273287Intergalactic Highway#223382Deep Space Royal#313390Perfect Dark#332277Deep Space Rodeo#443388Majestic Eggplant#2b3191Royal Night#222266Intergalactic Cowboy#112473Midnight Crest
Closest common color name: Dark Slate Blue.
Questions
- What color is #312E7A?
- #312E7A is a dark, desaturated blue, closest to the named color Intergalactic Highway. It belongs to the blue family of colors.
- What is the RGB value of #312E7A?
- The RGB value is 49, 46, 122: 49 red, 46 green and 122 blue on a 0 to 255 scale.
- What is the complementary color of #312E7A?
- The complementary color is #777A2E, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #312E7A?
- White text. Black text has a contrast ratio of 1.8:1 and white text 11.65:1. WCAG asks for at least 4.5:1 for normal text.