#3333CC color
#3333CC is a blue colour. It is rgb(51, 51, 204) in RGB and hsl(240, 60%, 50%) in HSL. Text in white reads better on it: the contrast is 8.45:1 against white and 2.49:1 against black.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#3333CC}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{33}_{16}=51,\ B=\mathrm{CC}_{16}=204 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
240^\circ + 180^\circ = 60^\circ ;\Rightarrow; \mathrm{#CCCC33} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#3333CC} = \mathrm{rgb}(51, 51, 204) \]
\[ \mathrm{#3333CC}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{33}_{16}=51,\ B=\mathrm{CC}_{16}=204 \]
\[ H=240^\circ,\quad S=60\%,\quad L=50\% \]
\[ 240^\circ + 180^\circ = 60^\circ ;\Rightarrow; \mathrm{#CCCC33} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 8.45:1\ \text{(on white)} \]#3333CC in every colour format
| Format | Value |
|---|---|
| HEX | #3333CC |
| RGB | rgb(51, 51, 204) |
| RGB (percent) | rgb(20.0%, 20.0%, 80.0%) |
| HSL | hsl(240, 60%, 50%) |
| HSV / HSB | hsv(240, 75%, 80%) |
| CMYK | cmyk(75%, 75%, 0%, 20%) |
| Decimal | 3355596 |
| Description | blue |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 8.45:1 | pass | pass | pass | pass |
| Black text | 2.49:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #080822 #111144 #1A1A66 #222288 #2B2BAA |
| This colour | #3333CC |
| Tints (mixed with white) | #5555D5 #7777DD #9999E6 #BBBBEE #DDDDF7 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #0054D0 | 24 |
| Deuteranopia | #0045C9 | 16 |
| Tritanopia | #00607D | 84 |
| Grayscale | #4D4D4D | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dark blue | #00008B |
| Blue violet | #8A2BE2 |
| Medium blue | #0000CD |
| Navy | #000080 |
Questions
What is the RGB value of #3333CC?
rgb(51, 51, 204): red 51, green 51, blue 204.
What is the HSL value of #3333CC?
hsl(240, 60%, 50%): a hue of 240°, 60% saturation and 50% lightness.
What is the complementary colour of #3333CC?
#CCCC33, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #CCCC33.
Should I use white or black text on #3333CC?
White. White gives 8.45:1 and black 2.49:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #3333CC?
cmyk(75%, 75%, 0%, 20%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #3333CC?
Dark blue (#00008B).