HEX: #D41D1F
RGB: (212,29,31)
#D41D1F contains mainly red color. Web safe color of #D41D1F is #CC3333 (or #C33).
#D41D1F color RGB value is (212,29,31).
RGB: (212,29,31) (83%,11%,12%)
R 212 of 255 = 83%
G 29 of 255 = 11%
B 31 of 255 = 12%
R + G + B ~ 35%. #D41D1F is quite dark color.
R + G + B =
212 + 29 + 31 = 272 (100%)
R 212 of 272 ~ 77.94%
G 29 of 272 ~ 10.66%
B 31 of 272 ~ 11.4%
#D41D1F color CMYK value is (0,86,85,17).
CMYK: (0,86,85,17) C0M86Y85K17 (0%,86%,85%,17%) (0.00/0.86/0.85/0.17)
D4 | 1D | 1F | |
---|---|---|---|
RGB | 212 | 29 | 31 |
HSL | 359° | 75.93% | 47.25% |
HSB/HSV | 359° | 86.32% | 83.14% |
CMYK | 0.00% | 86.32% | 85.38% |
16.86% |
HEX | D4 | 1D | 1F |
Decimal | 212 | 29 | 31 |
Binary | 11010100 | 11101 | 11111 |
Octal | 324 | 35 | 37 |
Examples of css and html codes for elements with #D41D1F color. Also use rgb(212,29,31) instead hex code.
.myTextColor { color: #D41D1F; }
<p style="color:#D41D1F">This sample text font color is #D41D1F.</p>
This text font color is #D41D1F.
.myBgColor { background-color: #D41D1F; }
<div style="background-color:#D41D1F">Inner text</div>
This div background color is #D41D1F.
.myBorderColor { border: 1px solid #D41D1F; }
<div style="border:3px solid #D41D1F">Div</div>
This div border color is #D41D1F.
.myOpacity80 { color: #D41D1F; opacity: 0.8; }
<p style="color:#D41D1F;opacity:0.8;">80%</p>
Text with #D41D1F color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D41D1F;}
<p style="text-shadow: 3px 3px 1px #D41D1F">Text here.</p>
This text has shadow with #D41D1F color.
.textShadow {text-shadow: 3px 3px 1px #D41D1F, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D41D1F, 5px 5px 20px red">Text here.</p>
This text has shadow with #D41D1F primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D41D1F, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D41D1F, Direction=45, Strength=4)">Text</p>
This text has shadow with #D41D1F and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D41D1F; -webkit-box-shadow: 1px 1px 3px 2px #D41D1F; box-shadow: 1px 1px 3px 2px #D41D1F; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D41D1F; -webkit-box-shadow: 1px 1px 3px 2px #D41D1F; box-shadow:1px 1px 3px 2px #D41D1F;">
Div content here</div>
This text has color #D41D1F on black background.
This text has color #D41D1F on white background.
This text has black color on #D41D1F background.
This text has white color on #D41D1F background.