HEX: #400040
RGB: (64,0,64)
#400040 contains only red and blue colors. Web safe color of #400040 is #330033 (or #303).
#400040 color RGB value is (64,0,64).
RGB: (64,0,64) (25%,0%,25%)
R 64 of 255 = 25%
G 0 of 255 = 0%
B 64 of 255 = 25%
R + G + B ~ 17%. #400040 is dark color.
R + G + B =
64 + 0 + 64 = 128 (100%)
R 64 of 128 ~ 50%
G 0 of 128 ~ 0%
B 64 of 128 ~ 50%
#400040 color CMYK value is (0,100,0,75).
CMYK: (0,100,0,75) C0M100Y0K75 (0%,100%,0%,75%) (0.00/1.00/0.00/0.75)
40 | 00 | 40 | |
---|---|---|---|
RGB | 64 | 0 | 64 |
HSL | 300° | 100.00% | 12.55% |
HSB/HSV | 300° | 100.00% | 25.10% |
CMYK | 0.00% | 100.00% | 0.00% |
74.90% |
HEX | 40 | 00 | 40 |
Decimal | 64 | 0 | 64 |
Binary | 1000000 | 0 | 1000000 |
Octal | 100 | 0 | 100 |
Examples of css and html codes for elements with #400040 color. Also use rgb(64,0,64) instead hex code.
.myTextColor { color: #400040; }
<p style="color:#400040">This sample text font color is #400040.</p>
This text font color is #400040.
.myBgColor { background-color: #400040; }
<div style="background-color:#400040">Inner text</div>
This div background color is #400040.
.myBorderColor { border: 1px solid #400040; }
<div style="border:3px solid #400040">Div</div>
This div border color is #400040.
.myOpacity80 { color: #400040; opacity: 0.8; }
<p style="color:#400040;opacity:0.8;">80%</p>
Text with #400040 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #400040;}
<p style="text-shadow: 3px 3px 1px #400040">Text here.</p>
This text has shadow with #400040 color.
.textShadow {text-shadow: 3px 3px 1px #400040, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #400040, 5px 5px 20px red">Text here.</p>
This text has shadow with #400040 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#400040, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#400040, Direction=45, Strength=4)">Text</p>
This text has shadow with #400040 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #400040; -webkit-box-shadow: 1px 1px 3px 2px #400040; box-shadow: 1px 1px 3px 2px #400040; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #400040; -webkit-box-shadow: 1px 1px 3px 2px #400040; box-shadow:1px 1px 3px 2px #400040;">
Div content here</div>
This text has color #400040 on black background.
This text has color #400040 on white background.
This text has black color on #400040 background.
This text has white color on #400040 background.