#2277DD color
#2277DD is a blue colour. It is rgb(34, 119, 221) in RGB and hsl(213, 73%, 50%) in HSL. Text in black reads better on it: the contrast is 4.75:1 against black and 4.42:1 against white.
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{#2277DD}:\quad R=\mathrm{22}_{16}=34,\ G=\mathrm{77}_{16}=119,\ B=\mathrm{DD}_{16}=221 - 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.
213^\circ + 180^\circ = 33^\circ ;\Rightarrow; \mathrm{#DD8822} - 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{#2277DD} = \mathrm{rgb}(34, 119, 221) \]
\[ \mathrm{#2277DD}:\quad R=\mathrm{22}_{16}=34,\ G=\mathrm{77}_{16}=119,\ B=\mathrm{DD}_{16}=221 \]
\[ H=213^\circ,\quad S=73\%,\quad L=50\% \]
\[ 213^\circ + 180^\circ = 33^\circ ;\Rightarrow; \mathrm{#DD8822} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 4.42:1\ \text{(on white)} \]#2277DD in every colour format
| Format | Value |
|---|---|
| HEX | #2277DD |
| RGB | rgb(34, 119, 221) |
| RGB (percent) | rgb(13.3%, 46.7%, 86.7%) |
| HSL | hsl(213, 73%, 50%) |
| HSV / HSB | hsv(213, 85%, 87%) |
| CMYK | cmyk(85%, 46%, 0%, 13%) |
| Decimal | 2258909 |
| 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 | 4.42:1 | fail | pass | fail | fail |
| Black text | 4.75:1 | pass | pass | fail | pass |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #061425 #0B284A #113C6F #174F93 #1C63B8 |
| This colour | #2277DD |
| Tints (mixed with white) | #478EE3 #6CA4E8 #91BBEE #B5D2F4 #DAE8F9 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #3E81E1 | 6 |
| Deuteranopia | #0070DB | 4 |
| Tritanopia | #00909F | 57 |
| Grayscale | #787878 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Dodger blue | #1E90FF |
| Royal blue | #4169E1 |
| Cornflower blue | #6495ED |
| Slate blue | #6A5ACD |
Questions
What is the RGB value of #2277DD?
rgb(34, 119, 221): red 34, green 119, blue 221.
What is the HSL value of #2277DD?
hsl(213, 73%, 50%): a hue of 213°, 73% saturation and 50% lightness.
What is the complementary colour of #2277DD?
#DD8822, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #DD8822.
Should I use white or black text on #2277DD?
Black. White gives 4.42:1 and black 4.75:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #2277DD?
cmyk(85%, 46%, 0%, 13%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #2277DD?
Dodger blue (#1E90FF).