#334499 color
#334499 is a muted blue colour. It is rgb(51, 68, 153) in RGB and hsl(230, 50%, 40%) in HSL. Text in white reads better on it: the contrast is 8.65:1 against white and 2.43: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{#334499}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{44}_{16}=68,\ 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.
230^\circ + 180^\circ = 50^\circ ;\Rightarrow; \mathrm{#998833} - 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{#334499} = \mathrm{rgb}(51, 68, 153) \]
\[ \mathrm{#334499}:\quad R=\mathrm{33}_{16}=51,\ G=\mathrm{44}_{16}=68,\ B=\mathrm{99}_{16}=153 \]
\[ H=230^\circ,\quad S=50\%,\quad L=40\% \]
\[ 230^\circ + 180^\circ = 50^\circ ;\Rightarrow; \mathrm{#998833} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 8.65:1\ \text{(on white)} \]#334499 in every colour format
| Format | Value |
|---|---|
| HEX | #334499 |
| RGB | rgb(51, 68, 153) |
| RGB (percent) | rgb(20.0%, 26.7%, 60.0%) |
| HSL | hsl(230, 50%, 40%) |
| HSV / HSB | hsv(230, 67%, 60%) |
| CMYK | cmyk(67%, 56%, 0%, 40%) |
| Decimal | 3359897 |
| Description | muted 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.65:1 | pass | pass | pass | pass |
| Black text | 2.43:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #080B19 #111733 #1A224D #222D66 #2B3980 |
| This colour | #334499 |
| Tints (mixed with white) | #5563AA #7782BB #99A2CC #BBC1DD #DDE0EE |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #02509C | 12 |
| Deuteranopia | #004797 | 8 |
| Tritanopia | #005867 | 51 |
| Grayscale | #4C4C4C | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dark slate blue | #483D8B |
| Midnight blue | #191970 |
| Rebecca purple | #663399 |
| Slate blue | #6A5ACD |
Questions
What is the RGB value of #334499?
rgb(51, 68, 153): red 51, green 68, blue 153.
What is the HSL value of #334499?
hsl(230, 50%, 40%): a hue of 230°, 50% saturation and 40% lightness.
What is the complementary colour of #334499?
#998833, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #CCBB66.
Should I use white or black text on #334499?
White. White gives 8.65:1 and black 2.43:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #334499?
cmyk(67%, 56%, 0%, 40%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #334499?
Dark slate blue (#483D8B).