HEX: #D40D2E
RGB: (212,13,46)
#D40D2E contains mainly red color. Web safe color of #D40D2E is #CC0033 (or #C03).
#D40D2E color RGB value is (212,13,46).
RGB: (212,13,46) (83%,5%,18%)
R 212 of 255 = 83%
G 13 of 255 = 5%
B 46 of 255 = 18%
R + G + B ~ 35%. #D40D2E is quite dark color.
R + G + B =
212 + 13 + 46 = 271 (100%)
R 212 of 271 ~ 78.23%
G 13 of 271 ~ 4.8%
B 46 of 271 ~ 16.97%
#D40D2E color CMYK value is (0,94,78,17).
CMYK: (0,94,78,17) C0M94Y78K17 (0%,94%,78%,17%) (0.00/0.94/0.78/0.17)
D4 | 0D | 2E | |
---|---|---|---|
RGB | 212 | 13 | 46 |
HSL | 350° | 88.44% | 44.12% |
HSB/HSV | 350° | 93.87% | 83.14% |
CMYK | 0.00% | 93.87% | 78.30% |
16.86% |
HEX | D4 | 0D | 2E |
Decimal | 212 | 13 | 46 |
Binary | 11010100 | 1101 | 101110 |
Octal | 324 | 15 | 56 |
Examples of css and html codes for elements with #D40D2E color. Also use rgb(212,13,46) instead hex code.
.myTextColor { color: #D40D2E; }
<p style="color:#D40D2E">This sample text font color is #D40D2E.</p>
This text font color is #D40D2E.
.myBgColor { background-color: #D40D2E; }
<div style="background-color:#D40D2E">Inner text</div>
This div background color is #D40D2E.
.myBorderColor { border: 1px solid #D40D2E; }
<div style="border:3px solid #D40D2E">Div</div>
This div border color is #D40D2E.
.myOpacity80 { color: #D40D2E; opacity: 0.8; }
<p style="color:#D40D2E;opacity:0.8;">80%</p>
Text with #D40D2E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D40D2E;}
<p style="text-shadow: 3px 3px 1px #D40D2E">Text here.</p>
This text has shadow with #D40D2E color.
.textShadow {text-shadow: 3px 3px 1px #D40D2E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D40D2E, 5px 5px 20px red">Text here.</p>
This text has shadow with #D40D2E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D40D2E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D40D2E, Direction=45, Strength=4)">Text</p>
This text has shadow with #D40D2E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D40D2E; -webkit-box-shadow: 1px 1px 3px 2px #D40D2E; box-shadow: 1px 1px 3px 2px #D40D2E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D40D2E; -webkit-box-shadow: 1px 1px 3px 2px #D40D2E; box-shadow:1px 1px 3px 2px #D40D2E;">
Div content here</div>
This text has color #D40D2E on black background.
This text has color #D40D2E on white background.
This text has black color on #D40D2E background.
This text has white color on #D40D2E background.