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.
- It can be written in 3-digit shorthand as
#316.
Color conversions
| HEX | #331166 |
|---|---|
| Short HEX | #316 |
| RGB | rgb(51, 17, 102) |
| RGB percent | rgb(20%, 6.7%, 40%) |
| HSL | hsl(264, 71%, 23%) |
| HSV / HSB | hsv(264, 83%, 40%) |
| CMYK | cmyk(50%, 83%, 0%, 60%) |
| CIELAB (D65) | lab(15.8 36.2 -43) |
| Decimal | 3346790 |
| Binary | 00110011 00010001 01100110 |
HEX 33 11 66 → 51, 17, 102 (each pair is a base-16 number: 3×16 + 3 = 51)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
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 #331166 | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 14.86:1 | Pass | Pass | Pass | Pass |
| Black text | 1.41:1 | Fail | Fail | Fail | Fail |
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
| Name | HEX | ΔE 2000 |
|---|---|---|
| midnightblue | #191970 | 5.2 |
| indigo | #4b0082 | 5.9 |
| navy | #000080 | 7.2 |
| darkblue | #00008b | 7.9 |
Nearby colors
#441166less red
#221166more green
#332266less green
#330066more blue
#331177less blue
#331155lighter
#442277darker
#220055
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; }