#3311BB color

#3311BB is rgb(51, 17, 187) in RGB and hsl(252, 83%, 40%) in HSL. The closest CSS named color is mediumblue (#0000cd, ΔE 2.7). Use white text on it (contrast 10.83:1).

#3311BBviolet
HEX#3311BB
Short HEX#31B
RGBrgb(51, 17, 187)
RGB percentrgb(20%, 6.7%, 73.3%)
HSLhsl(252, 83%, 40%)
HSV / HSBhsv(252, 91%, 73%)
CMYKcmyk(73%, 91%, 0%, 27%)

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

About #3311BB

#3311BB is a medium-dark, vivid violet with a hue angle of 252°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 187 (73%) and green the weakest at 17 (7%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#3311BB
Short HEX#31B
RGBrgb(51, 17, 187)
RGB percentrgb(20%, 6.7%, 73.3%)
HSLhsl(252, 83%, 40%)
HSV / HSBhsv(252, 91%, 73%)
CMYKcmyk(73%, 91%, 0%, 27%)
CIELAB (D65)lab(25.8 59.8 -79.4)
Decimal3346875
Binary00110011 00010001 10111011

HEX 33 11 BB → 51, 17, 187 (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 #3311BB

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #3311BBRatioAA normalAA largeAAA normalAAA large
White text10.83:1PassPassPassPass
Black text1.94:1FailFailFailFail
White text on #3311BB
Black text on #3311BB
#3311BB text on white
#3311BB text on black

Relative luminance is 0.0469 (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
#0044bf

Deuteranopia
#0036b8

Tritanopia
#004e6e

Achromatopsia
#3d3d3d

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 8). 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
mediumblue#0000cd2.7
blue#0000ff7.5
darkblue#00008b8.2
indigo#4b00828.9

Nearby colors

CSS

.element {
  color: #3311bb;
  background-color: rgb(51, 17, 187);
  border: 1px solid hsl(252, 83%, 40%);
  box-shadow: 0 2px 8px rgb(51 17 187 / 50%);
}
:root { --brand: #3311bb; }

Frequently asked questions

What color is #3311BB?
A medium-dark vivid violet in the blue family. Closest CSS name: mediumblue.
What is #3311BB in RGB?
rgb(51, 17, 187): red 51, green 17, blue 187.
What is the complementary color of #3311BB?
#99BB11, found by rotating the hue 180°.