HEX: #D2221E
RGB: (210,34,30)
#D2221E contains mainly red color. Web safe color of #D2221E is #CC3333 (or #C33).
#D2221E color RGB value is (210,34,30).
RGB: (210,34,30) (82%,13%,12%)
R 210 of 255 = 82%
G 34 of 255 = 13%
B 30 of 255 = 12%
R + G + B ~ 36%. #D2221E is quite dark color.
R + G + B =
210 + 34 + 30 = 274 (100%)
R 210 of 274 ~ 76.64%
G 34 of 274 ~ 12.41%
B 30 of 274 ~ 10.95%
#D2221E color CMYK value is (0,84,86,18).
CMYK: (0,84,86,18) C0M84Y86K18 (0%,84%,86%,18%) (0.00/0.84/0.86/0.18)
D2 | 22 | 1E | |
---|---|---|---|
RGB | 210 | 34 | 30 |
HSL | 1° | 75.00% | 47.06% |
HSB/HSV | 1° | 85.71% | 82.35% |
CMYK | 0.00% | 83.81% | 85.71% |
17.65% |
HEX | D2 | 22 | 1E |
Decimal | 210 | 34 | 30 |
Binary | 11010010 | 100010 | 11110 |
Octal | 322 | 42 | 36 |
Examples of css and html codes for elements with #D2221E color. Also use rgb(210,34,30) instead hex code.
.myTextColor { color: #D2221E; }
<p style="color:#D2221E">This sample text font color is #D2221E.</p>
This text font color is #D2221E.
.myBgColor { background-color: #D2221E; }
<div style="background-color:#D2221E">Inner text</div>
This div background color is #D2221E.
.myBorderColor { border: 1px solid #D2221E; }
<div style="border:3px solid #D2221E">Div</div>
This div border color is #D2221E.
.myOpacity80 { color: #D2221E; opacity: 0.8; }
<p style="color:#D2221E;opacity:0.8;">80%</p>
Text with #D2221E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D2221E;}
<p style="text-shadow: 3px 3px 1px #D2221E">Text here.</p>
This text has shadow with #D2221E color.
.textShadow {text-shadow: 3px 3px 1px #D2221E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D2221E, 5px 5px 20px red">Text here.</p>
This text has shadow with #D2221E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D2221E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D2221E, Direction=45, Strength=4)">Text</p>
This text has shadow with #D2221E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D2221E; -webkit-box-shadow: 1px 1px 3px 2px #D2221E; box-shadow: 1px 1px 3px 2px #D2221E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D2221E; -webkit-box-shadow: 1px 1px 3px 2px #D2221E; box-shadow:1px 1px 3px 2px #D2221E;">
Div content here</div>
This text has color #D2221E on black background.
This text has color #D2221E on white background.
This text has black color on #D2221E background.
This text has white color on #D2221E background.