HEX: #D31F1E
RGB: (211,31,30)
#D31F1E contains mainly red color. Web safe color of #D31F1E is #CC3333 (or #C33).
#D31F1E color RGB value is (211,31,30).
RGB: (211,31,30) (83%,12%,12%)
R 211 of 255 = 83%
G 31 of 255 = 12%
B 30 of 255 = 12%
R + G + B ~ 36%. #D31F1E is quite dark color.
R + G + B =
211 + 31 + 30 = 272 (100%)
R 211 of 272 ~ 77.57%
G 31 of 272 ~ 11.4%
B 30 of 272 ~ 11.03%
#D31F1E color CMYK value is (0,85,86,17).
CMYK: (0,85,86,17) C0M85Y86K17 (0%,85%,86%,17%) (0.00/0.85/0.86/0.17)
D3 | 1F | 1E | |
---|---|---|---|
RGB | 211 | 31 | 30 |
HSL | 0° | 75.10% | 47.25% |
HSB/HSV | 0° | 85.78% | 82.75% |
CMYK | 0.00% | 85.31% | 85.78% |
17.25% |
HEX | D3 | 1F | 1E |
Decimal | 211 | 31 | 30 |
Binary | 11010011 | 11111 | 11110 |
Octal | 323 | 37 | 36 |
Examples of css and html codes for elements with #D31F1E color. Also use rgb(211,31,30) instead hex code.
.myTextColor { color: #D31F1E; }
<p style="color:#D31F1E">This sample text font color is #D31F1E.</p>
This text font color is #D31F1E.
.myBgColor { background-color: #D31F1E; }
<div style="background-color:#D31F1E">Inner text</div>
This div background color is #D31F1E.
.myBorderColor { border: 1px solid #D31F1E; }
<div style="border:3px solid #D31F1E">Div</div>
This div border color is #D31F1E.
.myOpacity80 { color: #D31F1E; opacity: 0.8; }
<p style="color:#D31F1E;opacity:0.8;">80%</p>
Text with #D31F1E color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #D31F1E;}
<p style="text-shadow: 3px 3px 1px #D31F1E">Text here.</p>
This text has shadow with #D31F1E color.
.textShadow {text-shadow: 3px 3px 1px #D31F1E, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #D31F1E, 5px 5px 20px red">Text here.</p>
This text has shadow with #D31F1E primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#D31F1E, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#D31F1E, Direction=45, Strength=4)">Text</p>
This text has shadow with #D31F1E and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #D31F1E; -webkit-box-shadow: 1px 1px 3px 2px #D31F1E; box-shadow: 1px 1px 3px 2px #D31F1E; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #D31F1E; -webkit-box-shadow: 1px 1px 3px 2px #D31F1E; box-shadow:1px 1px 3px 2px #D31F1E;">
Div content here</div>
This text has color #D31F1E on black background.
This text has color #D31F1E on white background.
This text has black color on #D31F1E background.
This text has white color on #D31F1E background.