#31345F color
The hex color #31345F is a dark, desaturated blue.
In the RGB color model it is made of 19.2% red, 20.4% green and 37.3% blue (49, 52, 95).
Its hue angle is 236°, with 32% saturation and 28% lightness. For print, the CMYK equivalent is 48% cyan, 45% magenta, 0% yellow and 63% black.
The closest named color is Galaxea (#2E305E), a difference of 1.4 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 11.75:1).
#31345F color codes
| HEX | #31345F | |
|---|---|---|
| RGB | rgb(49, 52, 95) | |
| RGB percent | rgb(19.2%, 20.4%, 37.3%) | |
| HSL | hsl(236, 32%, 28%) | |
| HSV / HSB | hsv(236, 48%, 37%) | |
| CMYK | cmyk(48%, 45%, 0%, 63%) | |
| CIE LAB | lab(23.46, 11.61, -26.08) | |
| CIE LCH | lch(23.46, 28.55, 294) | |
| CIE XYZ | xyz(4.56, 3.935, 11.344) | |
| Decimal | 3224671 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #31345F, 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 #31345F | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.79:1 | Fail | Fail | Fail |
| Sample text | 11.75:1 | Pass | Pass | Pass |
| #31345F as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.75:1 | Pass | Pass | Pass |
| Sample text | 1.79: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 #31345F looks to people with the most common types of color vision deficiency.
#243a61Protanopia
no red cones#20365eDeuteranopia
no green cones#213d45Tritanopia
no blue cones#383838Achromatopsia
no color vision
CSS examples
.background { background-color: #31345f; }
.text { color: #31345f; }
.border { border: 2px solid #31345f; }
.transparent { background-color: rgb(49 52 95 / 50%); }
.gradient { background: linear-gradient(to right, #31345f, #45315f); }
Similar colors
#2e305eGalaxea#2c2c57Deep Sea Base#2b3458Midnight Escapade#322c56Purple Noir#3d3d63Storm Is Coming#2e3858Mediaeval Blue#1d2951Space Cadet#1c2e63Mythical Night
Closest common color name: Oxford Blue.
Questions
- What color is #31345F?
- #31345F is a dark, desaturated blue, closest to the named color Galaxea. It belongs to the blue family of colors.
- What is the RGB value of #31345F?
- The RGB value is 49, 52, 95: 49 red, 52 green and 95 blue on a 0 to 255 scale.
- What is the complementary color of #31345F?
- The complementary color is #5F5C31, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #31345F?
- White text. Black text has a contrast ratio of 1.79:1 and white text 11.75:1. WCAG asks for at least 4.5:1 for normal text.