#331958 color

#331958 rgb(51, 25, 88)
Shades of purple

The hex color #331958 is a dark, moderate violet.

In the RGB color model it is made of 20% red, 9.8% green and 34.5% blue (51, 25, 88).

Its hue angle is 265°, with 56% saturation and 22% lightness. For print, the CMYK equivalent is 42% cyan, 72% magenta, 0% yellow and 65% black.

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

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

#331958 color codes

HEX#331958
RGBrgb(51, 25, 88)
RGB percentrgb(20%, 9.8%, 34.5%)
HSLhsl(265, 56%, 22%)
HSV / HSBhsv(265, 72%, 35%)
CMYKcmyk(42%, 72%, 0%, 65%)
CIE LABlab(16.02, 27.91, -33.35)
CIE LCHlch(16.02, 43.49, 309.92)
CIE XYZxyz(3.474, 2.104, 9.454)
Decimal3348824
Short hexNone (no 3-digit form)

Color harmonies

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

CSS examples

.background { background-color: #331958; }
.text { color: #331958; }
.border { border: 2px solid #331958; }
.transparent { background-color: rgb(51 25 88 / 50%); }
.gradient { background: linear-gradient(to right, #331958, #531958); }
Background
Text color
Border

Similar colors

Closest common color name: Midnight Blue.

Questions

What color is #331958?
#331958 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 #331958?
The RGB value is 51, 25, 88: 51 red, 25 green and 88 blue on a 0 to 255 scale.
What is the complementary color of #331958?
The complementary color is #3E5819, found by rotating the hue 180° on the color wheel.
Is black or white text better on #331958?
White text. Black text has a contrast ratio of 1.42:1 and white text 14.78:1. WCAG asks for at least 4.5:1 for normal text.