#331166 color

#331166 is rgb(51, 17, 102) in RGB and hsl(264, 71%, 23%) in HSL. The closest CSS named color is midnightblue (#191970, ΔE 5.2). Use white text on it (contrast 14.86:1).

#331166purple
HEX#331166
Short HEX#316
RGBrgb(51, 17, 102)
RGB percentrgb(20%, 6.7%, 40%)
HSLhsl(264, 71%, 23%)
HSV / HSBhsv(264, 83%, 40%)
CMYKcmyk(50%, 83%, 0%, 60%)

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

About #331166

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

Color conversions

HEX#331166
Short HEX#316
RGBrgb(51, 17, 102)
RGB percentrgb(20%, 6.7%, 40%)
HSLhsl(264, 71%, 23%)
HSV / HSBhsv(264, 83%, 40%)
CMYKcmyk(50%, 83%, 0%, 60%)
CIELAB (D65)lab(15.8 36.2 -43)
Decimal3346790
Binary00110011 00010001 01100110

HEX 33 11 66 → 51, 17, 102 (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 #331166

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #331166RatioAA normalAA largeAAA normalAAA large
White text14.86:1PassPassPassPass
Black text1.41:1FailFailFailFail
White text on #331166
Black text on #331166
#331166 text on white
#331166 text on black

Relative luminance is 0.0206 (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
#002868

Deuteranopia
#002664

Tritanopia
#24293b

Achromatopsia
#272727

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 11.2). 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#1919705.2
indigo#4b00825.9
navy#0000807.2
darkblue#00008b7.9

Nearby colors

CSS

.element {
  color: #331166;
  background-color: rgb(51, 17, 102);
  border: 1px solid hsl(264, 71%, 23%);
  box-shadow: 0 2px 8px rgb(51 17 102 / 50%);
}
:root { --brand: #331166; }

Frequently asked questions

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