#31315E color

#31315E rgb(49, 49, 94)
Shades of blue

The hex color #31315E is a dark, desaturated blue.

In the RGB color model it is made of 19.2% red, 19.2% green and 36.9% blue (49, 49, 94).

Its hue angle is 240°, with 31% saturation and 28% lightness. For print, the CMYK equivalent is 48% cyan, 48% magenta, 0% yellow and 63% black.

The closest named color is Galaxea (#2E305E), a difference of 0.7 ΔE, which is barely visible.

White text is the more readable choice on this background (contrast 12.13:1).

#31315E color codes

HEX#31315E
RGBrgb(49, 49, 94)
RGB percentrgb(19.2%, 19.2%, 36.9%)
HSLhsl(240, 31%, 28%)
HSV / HSBhsv(240, 48%, 37%)
CMYKcmyk(48%, 48%, 0%, 63%)
CIE LABlab(22.51, 13.35, -26.94)
CIE LCHlch(22.51, 30.06, 296.37)
CIE XYZxyz(4.385, 3.658, 11.062)
Decimal3223902
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #31315E, 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 #31315ERatioAAAAAAA large
Sample text1.73:1FailFailFail
Sample text12.13:1PassPassPass
#31315E as text onRatioAAAAAAA large
Sample text12.13:1PassPassPass
Sample text1.73:1FailFailFail

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 #31315E looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #31315e; }
.text { color: #31315e; }
.border { border: 2px solid #31315e; }
.transparent { background-color: rgb(49 49 94 / 50%); }
.gradient { background: linear-gradient(to right, #31315e, #48315e); }
Background
Text color
Border

Similar colors

Closest common color name: Oxford Blue.

Questions

What color is #31315E?
#31315E 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 #31315E?
The RGB value is 49, 49, 94: 49 red, 49 green and 94 blue on a 0 to 255 scale.
What is the complementary color of #31315E?
The complementary color is #5E5E31, found by rotating the hue 180° on the color wheel.
Is black or white text better on #31315E?
White text. Black text has a contrast ratio of 1.73:1 and white text 12.13:1. WCAG asks for at least 4.5:1 for normal text.