#31236D color

#31236D rgb(49, 35, 109)
Shades of blue

The hex color #31236D is a dark, moderate violet.

In the RGB color model it is made of 19.2% red, 13.7% green and 42.7% blue (49, 35, 109).

Its hue angle is 251°, with 51% saturation and 28% lightness. For print, the CMYK equivalent is 55% cyan, 68% magenta, 0% yellow and 57% black.

The closest named color is Dark Dreams (#332266), a difference of 1.6 ΔE, which is barely visible.

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

#31236D color codes

HEX#31236D
RGBrgb(49, 35, 109)
RGB percentrgb(19.2%, 13.7%, 42.7%)
HSLhsl(251, 51%, 28%)
HSV / HSBhsv(251, 68%, 43%)
CMYKcmyk(55%, 68%, 0%, 57%)
CIE LABlab(19.88, 27.92, -40.96)
CIE LCHlch(19.88, 49.57, 304.28)
CIE XYZxyz(4.627, 2.959, 14.792)
Decimal3220333
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #31236D, 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 #31236DRatioAAAAAAA large
Sample text1.59:1FailFailFail
Sample text13.19:1PassPassPass
#31236D as text onRatioAAAAAAA large
Sample text13.19:1PassPassPass
Sample text1.59: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 #31236D looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #31236d; }
.text { color: #31236d; }
.border { border: 2px solid #31236d; }
.transparent { background-color: rgb(49 35 109 / 50%); }
.gradient { background: linear-gradient(to right, #31236d, #56236d); }
Background
Text color
Border

Similar colors

Questions

What color is #31236D?
#31236D is a dark, moderate violet, closest to the named color Dark Dreams. It belongs to the blue family of colors.
What is the RGB value of #31236D?
The RGB value is 49, 35, 109: 49 red, 35 green and 109 blue on a 0 to 255 scale.
What is the complementary color of #31236D?
The complementary color is #5F6D23, found by rotating the hue 180° on the color wheel.
Is black or white text better on #31236D?
White text. Black text has a contrast ratio of 1.59:1 and white text 13.19:1. WCAG asks for at least 4.5:1 for normal text.