#331B5C color

#331B5C rgb(51, 27, 92)
Shades of purple

The hex color #331B5C is a dark, moderate violet.

In the RGB color model it is made of 20% red, 10.6% green and 36.1% blue (51, 27, 92).

Its hue angle is 262°, with 55% saturation and 23% lightness. For print, the CMYK equivalent is 45% cyan, 71% magenta, 0% yellow and 64% black.

The closest named color is Fabric of Space (#341758), a difference of 1.3 ΔE, which is barely visible.

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

#331B5C color codes

HEX#331B5C
RGBrgb(51, 27, 92)
RGB percentrgb(20%, 10.6%, 36.1%)
HSLhsl(262, 55%, 23%)
HSV / HSBhsv(262, 71%, 36%)
CMYKcmyk(45%, 71%, 0%, 64%)
CIE LABlab(16.8, 27.91, -34.77)
CIE LCHlch(16.8, 44.59, 308.75)
CIE XYZxyz(3.688, 2.26, 10.365)
Decimal3349340
Short hexNone (no 3-digit form)

Color harmonies

Colors that go with #331B5C, 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 #331B5CRatioAAAAAAA large
Sample text1.45:1FailFailFail
Sample text14.46:1PassPassPass
#331B5C as text onRatioAAAAAAA large
Sample text14.46:1PassPassPass
Sample text1.45: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 #331B5C looks to people with the most common types of color vision deficiency.

CSS examples

.background { background-color: #331b5c; }
.text { color: #331b5c; }
.border { border: 2px solid #331b5c; }
.transparent { background-color: rgb(51 27 92 / 50%); }
.gradient { background: linear-gradient(to right, #331b5c, #541b5c); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #331B5C?
#331B5C is a dark, moderate violet, closest to the named color Fabric of Space. It belongs to the purple family of colors.
What is the RGB value of #331B5C?
The RGB value is 51, 27, 92: 51 red, 27 green and 92 blue on a 0 to 255 scale.
What is the complementary color of #331B5C?
The complementary color is #445C1B, found by rotating the hue 180° on the color wheel.
Is black or white text better on #331B5C?
White text. Black text has a contrast ratio of 1.45:1 and white text 14.46:1. WCAG asks for at least 4.5:1 for normal text.