#331FAD color

#331FAD rgb(51, 31, 173)
Shades of blue

The hex color #331FAD is a moderate blue.

In the RGB color model it is made of 20% red, 12.2% green and 67.8% blue (51, 31, 173).

Its hue angle is 248°, with 70% saturation and 40% lightness. For print, the CMYK equivalent is 71% cyan, 82% magenta, 0% yellow and 32% black.

The closest named color is Sapphire Splendour (#2425B9), a difference of 2.3 ΔE, a small difference.

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

#331FAD color codes

HEX#331FAD
RGBrgb(51, 31, 173)
RGB percentrgb(20%, 12.2%, 67.8%)
HSLhsl(248, 70%, 40%)
HSV / HSBhsv(248, 82%, 68%)
CMYKcmyk(71%, 82%, 0%, 32%)
CIE LABlab(25.86, 50.75, -70.99)
CIE LCHlch(25.86, 87.26, 305.56)
CIE XYZxyz(9.396, 4.7, 39.939)
Decimal3350445
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #331FAD, 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 #331FADRatioAAAAAAA large
Sample text1.94:1FailFailFail
Sample text10.82:1PassPassPass
#331FAD as text onRatioAAAAAAA large
Sample text10.82:1PassPassPass
Sample text1.94: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 #331FAD looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #331fad; }
.text { color: #331fad; }
.border { border: 2px solid #331fad; }
.transparent { background-color: rgb(51 31 173 / 50%); }
.gradient { background: linear-gradient(to right, #331fad, #7a1fad); }
Background
Text color
Border

Similar colors

Closest common color name: Medium Blue.

Questions

What color is #331FAD?
#331FAD is a moderate blue, closest to the named color Sapphire Splendour. It belongs to the blue family of colors.
What is the RGB value of #331FAD?
The RGB value is 51, 31, 173: 51 red, 31 green and 173 blue on a 0 to 255 scale.
What is the complementary color of #331FAD?
The complementary color is #99AD1F, found by rotating the hue 180° on the color wheel.
Is black or white text better on #331FAD?
White text. Black text has a contrast ratio of 1.94:1 and white text 10.82:1. WCAG asks for at least 4.5:1 for normal text.