HEX: #402D74
RGB: (64,45,116)
#402D74 contains mainly red and blue colors. Web safe color of #402D74 is #333366 (or #336).
#402D74 color RGB value is (64,45,116).
RGB: (64,45,116) (25%,18%,45%)
R 64 of 255 = 25%
G 45 of 255 = 18%
B 116 of 255 = 45%
R + G + B ~ 29%. #402D74 is quite dark color.
R + G + B =
64 + 45 + 116 = 225 (100%)
R 64 of 225 ~ 28.44%
G 45 of 225 ~ 20%
B 116 of 225 ~ 51.56%
#402D74 color CMYK value is (45,61,0,55).
CMYK: (45,61,0,55) C45M61Y0K55 (45%,61%,0%,55%) (0.45/0.61/0.00/0.55)
40 | 2D | 74 | |
---|---|---|---|
RGB | 64 | 45 | 116 |
HSL | 256° | 44.10% | 31.57% |
HSB/HSV | 256° | 61.21% | 45.49% |
CMYK | 44.83% | 61.21% | 0.00% |
54.51% |
HEX | 40 | 2D | 74 |
Decimal | 64 | 45 | 116 |
Binary | 1000000 | 101101 | 1110100 |
Octal | 100 | 55 | 164 |
Examples of css and html codes for elements with #402D74 color. Also use rgb(64,45,116) instead hex code.
.myTextColor { color: #402D74; }
<p style="color:#402D74">This sample text font color is #402D74.</p>
This text font color is #402D74.
.myBgColor { background-color: #402D74; }
<div style="background-color:#402D74">Inner text</div>
This div background color is #402D74.
.myBorderColor { border: 1px solid #402D74; }
<div style="border:3px solid #402D74">Div</div>
This div border color is #402D74.
.myOpacity80 { color: #402D74; opacity: 0.8; }
<p style="color:#402D74;opacity:0.8;">80%</p>
Text with #402D74 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #402D74;}
<p style="text-shadow: 3px 3px 1px #402D74">Text here.</p>
This text has shadow with #402D74 color.
.textShadow {text-shadow: 3px 3px 1px #402D74, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #402D74, 5px 5px 20px red">Text here.</p>
This text has shadow with #402D74 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#402D74, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#402D74, Direction=45, Strength=4)">Text</p>
This text has shadow with #402D74 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #402D74; -webkit-box-shadow: 1px 1px 3px 2px #402D74; box-shadow: 1px 1px 3px 2px #402D74; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #402D74; -webkit-box-shadow: 1px 1px 3px 2px #402D74; box-shadow:1px 1px 3px 2px #402D74;">
Div content here</div>
This text has color #402D74 on black background.
This text has color #402D74 on white background.
This text has black color on #402D74 background.
This text has white color on #402D74 background.