#DD2222 color
#DD2222 is a red colour. It is rgb(221, 34, 34) in RGB and hsl(0, 73%, 50%) in HSL. Text in white reads better on it: the contrast is 4.85:1 against white and 4.33: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{#DD2222}:\quad R=\mathrm{DD}_{16}=221,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{22}_{16}=34 - 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.
0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#22DDDD} - 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{#DD2222} = \mathrm{rgb}(221, 34, 34) \]
\[ \mathrm{#DD2222}:\quad R=\mathrm{DD}_{16}=221,\ G=\mathrm{22}_{16}=34,\ B=\mathrm{22}_{16}=34 \]
\[ H=0^\circ,\quad S=73\%,\quad L=50\% \]
\[ 0^\circ + 180^\circ = 180^\circ ;\Rightarrow; \mathrm{#22DDDD} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 4.85:1\ \text{(on white)} \]#DD2222 in every colour format
| Format | Value |
|---|---|
| HEX | #DD2222 |
| RGB | rgb(221, 34, 34) |
| RGB (percent) | rgb(86.7%, 13.3%, 13.3%) |
| HSL | hsl(0, 73%, 50%) |
| HSV / HSB | hsv(0, 85%, 87%) |
| CMYK | cmyk(0%, 85%, 85%, 13%) |
| Decimal | 14492194 |
| Description | red |
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.85:1 | pass | pass | fail | pass |
| Black text | 4.33:1 | fail | pass | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #250606 #4A0B0B #6F1111 #931717 #B81C1C |
| This colour | #DD2222 |
| Tints (mixed with white) | #E34747 #E86C6C #EE9191 #F4B5B5 #F9DADA |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #63581E | 74 |
| Deuteranopia | #8F7F15 | 73 |
| Tritanopia | #F40026 | 11 |
| Grayscale | #717171 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Crimson | #DC143C |
| Tomato | #FF6347 |
| Firebrick | #B22222 |
| Orange red | #FF4500 |
Questions
What is the RGB value of #DD2222?
rgb(221, 34, 34): red 221, green 34, blue 34.
What is the HSL value of #DD2222?
hsl(0, 73%, 50%): a hue of 0°, 73% saturation and 50% lightness.
What is the complementary colour of #DD2222?
#22DDDD, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #22DDDD.
Should I use white or black text on #DD2222?
White. White gives 4.85:1 and black 4.33:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #DD2222?
cmyk(0%, 85%, 85%, 13%). This is a simple formula conversion; printed colours depend on the printer profile.
What is the closest named colour to #DD2222?
Crimson (#DC143C).