#3311CC color

#3311CC is rgb(51, 17, 204) in RGB and hsl(251, 85%, 43%) in HSL. The closest CSS named color is mediumblue (#0000cd, ΔE 2.6). Use white text on it (contrast 10.03:1).

#3311CCviolet
HEX#3311CC
Short HEX#31C
RGBrgb(51, 17, 204)
RGB percentrgb(20%, 6.7%, 80%)
HSLhsl(251, 85%, 43%)
HSV / HSBhsv(251, 92%, 80%)
CMYKcmyk(75%, 92%, 0%, 20%)

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

About #3311CC

#3311CC is a medium, vivid violet with a hue angle of 251°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 204 (80%) 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#3311CC
Short HEX#31C
RGBrgb(51, 17, 204)
RGB percentrgb(20%, 6.7%, 80%)
HSLhsl(251, 85%, 43%)
HSV / HSBhsv(251, 92%, 80%)
CMYKcmyk(75%, 92%, 0%, 20%)
CIELAB (D65)lab(28 64.3 -85.8)
Decimal3346892
Binary00110011 00010001 11001100

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

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #3311CCRatioAA normalAA largeAAA normalAAA large
White text10.03:1PassPassPassPass
Black text2.09:1FailFailFailFail
White text on #3311CC
Black text on #3311CC
#3311CC text on white
#3311CC text on black

Relative luminance is 0.0546 (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
#004ad1

Deuteranopia
#003ac9

Tritanopia
#005578

Achromatopsia
#424242

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.6
blue#0000ff5.4
darkblue#00008b10.2
indigo#4b008210.7

Nearby colors

CSS

.element {
  color: #3311cc;
  background-color: rgb(51, 17, 204);
  border: 1px solid hsl(251, 85%, 43%);
  box-shadow: 0 2px 8px rgb(51 17 204 / 50%);
}
:root { --brand: #3311cc; }

Frequently asked questions

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