#31285A color

#31285A rgb(49, 40, 90)
Shades of blue

The hex color #31285A is a dark, desaturated violet.

In the RGB color model it is made of 19.2% red, 15.7% green and 35.3% blue (49, 40, 90).

Its hue angle is 251°, with 38% saturation and 25% lightness. For print, the CMYK equivalent is 46% cyan, 56% magenta, 0% yellow and 65% black.

The closest named color is Pāua (#2A2551), a difference of 2.1 ΔE, a small difference.

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

#31285A color codes

HEX#31285A
RGBrgb(49, 40, 90)
RGB percentrgb(19.2%, 15.7%, 35.3%)
HSLhsl(251, 38%, 25%)
HSV / HSBhsv(251, 56%, 35%)
CMYKcmyk(46%, 56%, 0%, 65%)
CIE LABlab(19.67, 18.25, -28.81)
CIE LCHlch(19.67, 34.11, 302.35)
CIE XYZxyz(3.87, 2.909, 10.028)
Decimal3221594
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #31285A, 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 #31285ARatioAAAAAAA large
Sample text1.58:1FailFailFail
Sample text13.28:1PassPassPass
#31285A as text onRatioAAAAAAA large
Sample text13.28:1PassPassPass
Sample text1.58: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 #31285A looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #31285a; }
.text { color: #31285a; }
.border { border: 2px solid #31285a; }
.transparent { background-color: rgb(49 40 90 / 50%); }
.gradient { background: linear-gradient(to right, #31285a, #4a285a); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #31285A?
#31285A is a dark, desaturated violet, closest to the named color Pāua. It belongs to the blue family of colors.
What is the RGB value of #31285A?
The RGB value is 49, 40, 90: 49 red, 40 green and 90 blue on a 0 to 255 scale.
What is the complementary color of #31285A?
The complementary color is #515A28, found by rotating the hue 180° on the color wheel.
Is black or white text better on #31285A?
White text. Black text has a contrast ratio of 1.58:1 and white text 13.28:1. WCAG asks for at least 4.5:1 for normal text.