#331155 color

#331155 is rgb(51, 17, 85) in RGB and hsl(270, 67%, 20%) in HSL. The closest CSS named color is midnightblue (#191970, ΔE 7.7). Use white text on it (contrast 15.53:1).

#331155purple
HEX#331155
Short HEX#315
RGBrgb(51, 17, 85)
RGB percentrgb(20%, 6.7%, 33.3%)
HSLhsl(270, 67%, 20%)
HSV / HSBhsv(270, 80%, 33%)
CMYKcmyk(40%, 80%, 0%, 67%)

Edit in the color converter → · Check contrast → · Shades →

About #331155

#331155 is a dark, saturated purple with a hue angle of 270°. It belongs to the purple family and reads as a balanced color. In the RGB model blue is the strongest channel at 85 (33%) and green the weakest at 17 (7%). Colors like this are typically used for headers, navigation bars and strong brand areas.

Color conversions

HEX#331155
Short HEX#315
RGBrgb(51, 17, 85)
RGB percentrgb(20%, 6.7%, 33.3%)
HSLhsl(270, 67%, 20%)
HSV / HSBhsv(270, 80%, 33%)
CMYKcmyk(40%, 80%, 0%, 67%)
CIELAB (D65)lab(14.2 31.5 -34.3)
Decimal3346773
Binary00110011 00010001 01010101

HEX 33 11 55 → 51, 17, 85 (each pair is a base-16 number: 3×16 + 3 = 51)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #331155

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #331155RatioAA normalAA largeAAA normalAAA large
White text15.53:1PassPassPassPass
Black text1.35:1FailFailFailFail
White text on #331155
Black text on #331155
#331155 text on white
#331155 text on black

Relative luminance is 0.0176 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#002357

Deuteranopia
#002454

Tritanopia
#2c2232

Achromatopsia
#242424

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 13.1). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
midnightblue#1919707.7
indigo#4b00828.5
navy#00008010.2
darkblue#00008b11.2

Nearby colors

CSS

.element {
  color: #331155;
  background-color: rgb(51, 17, 85);
  border: 1px solid hsl(270, 67%, 20%);
  box-shadow: 0 2px 8px rgb(51 17 85 / 50%);
}
:root { --brand: #331155; }

Frequently asked questions

What color is #331155?
A dark saturated purple in the purple family. Closest CSS name: midnightblue.
What is #331155 in RGB?
rgb(51, 17, 85): red 51, green 17, blue 85.
What is the complementary color of #331155?
#335511, found by rotating the hue 180°.