#3333CC colour

#3333CC is a blue close to CSS mediumblue. RGB 51, 51, 204, HSL 240, 60%, 50%. White text passes AAA (8.45:1), black fails (2.49:1).

#3333CC

Nearest CSS name
mediumblue #0000cd (not an exact match)
Described as
a blue
Red, green, blue
51, 51, 204
Web safe
Yes, one of the 216 web-safe colours
Luminance
0.0743 (WCAG relative luminance, 0 is black, 1 is white)

Colour codes

HEX#3333cc
HEX (short)#33c
RGBrgb(51, 51, 204)
RGB (percent)rgb(20% 20% 80%)
HSLhsl(240, 60%, 50%)
HSV / HSBhsv(240, 75%, 80%)
HWBhwb(240 20% 20%)
CMYK (naive)cmyk(75%, 75%, 0%, 20%)
CIELAB (D50)lab(31.28% 41.32 -80.03)
OKLCHoklch(44.19% 0.2256 272.28)
Decimal3355596

CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.

Contrast with white and black text

White text, 8.45:1The quick brown fox jumps over the lazy dog.
Black text, 2.49:1The quick brown fox jumps over the lazy dog.
TextRatioAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White8.45:1PassPassPassPass
Black2.49:1FailFailFailFail

White text is the better choice on #3333CC (8.45:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.

Tints and shades

Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).

Colour harmonies

Hue turned around the HSL colour wheel, saturation and lightness kept.

Complementary

The hue opposite on the colour wheel (180°).

Analogous

Neighbours 30° either side.

Triadic

Three hues 120° apart.

Split complementary

The two hues either side of the complement (150° and 210°).

Tetradic (square)

Four hues 90° apart.

How it looks with colour blindness

Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.

CSS

Text colourcolor: #3333cc;
Backgroundbackground-color: #3333cc;
Borderborder: 1px solid #3333cc;
Half transparentbackground-color: rgb(51 51 204 / 50%);
Custom property--colour-main: #3333cc;
Gradient to a darker shadebackground: linear-gradient(135deg, #3333cc, #1f1f7a);
Gradient from a lighter tintbackground: linear-gradient(180deg, #8585e0, #3333cc);
Text on this colourbackground-color: #3333cc; color: #fff;

Similar named colours

Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.

Convert #3333CC to other formats · Build a palette from it · Check contrast · All named colours

Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.