#332299 color
#332299 is a blue colour. It is rgb(51, 34, 153) in RGB and hsl(249, 64%, 37%) in HSL. Text in white reads better on it: the contrast is 11.48:1 against white and 1.83: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{#332299}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{99}_{16}=153 - 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.
249^\circ + 180^\circ = 69^\circ ;\Rightarrow; \mathrm{#889922} - 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{#332299} = \mathrm{rgb}(51, 34, 153) \]
\[ \mathrm{#332299}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{99}_{16}=153 \]
\[ H=249^\circ,\quad S=64\%,\quad L=37\% \]
\[ 249^\circ + 180^\circ = 69^\circ ;\Rightarrow; \mathrm{#889922} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 11.48:1\ \text{(on white)} \]#332299 in every colour format
| Format | Value |
|---|---|
| HEX | #332299 |
| RGB | rgb(51, 34, 153) |
| RGB (percent) | rgb(20.0%, 13.3%, 60.0%) |
| HSL | hsl(249, 64%, 37%) |
| HSV / HSB | hsv(249, 78%, 60%) |
| CMYK | cmyk(67%, 78%, 0%, 40%) |
| Decimal | 3351193 |
| 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 | 11.48:1 | pass | pass | pass | pass |
| Black text | 1.83:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #080619 #110B33 #1A114D #221766 #2B1C80 |
| This colour | #332299 |
| Tints (mixed with white) | #5547AA #776CBB #9991CC #BBB5DD #DDDAEE |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #003E9C | 22 |
| Deuteranopia | #003597 | 17 |
| Tritanopia | #00455C | 68 |
| Grayscale | #393939 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Navy | #000080 |
| Indigo | #4B0082 |
| Dark blue | #00008B |
| Rebecca purple | #663399 |
Questions
What is the RGB value of #332299?
rgb(51, 34, 153): red 51, green 34, blue 153.
What is the HSL value of #332299?
hsl(249, 64%, 37%): a hue of 249°, 64% saturation and 37% lightness.
What is the complementary colour of #332299?
#889922, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #CCDD66.
Should I use white or black text on #332299?
White. White gives 11.48:1 and black 1.83:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #332299?
cmyk(67%, 78%, 0%, 40%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #332299?
Navy (#000080).