HEX: #040685
RGB: (4,6,133)
#040685 contains mainly blue color. Web safe color of #040685 is #000099 (or #009).
#040685 color RGB value is (4,6,133).
RGB: (4,6,133) (2%,2%,52%)
R 4 of 255 = 2%
G 6 of 255 = 2%
B 133 of 255 = 52%
R + G + B ~ 19%. #040685 is dark color.
R + G + B =
4 + 6 + 133 = 143 (100%)
R 4 of 143 ~ 2.8%
G 6 of 143 ~ 4.2%
B 133 of 143 ~ 93.01%
#040685 color CMYK value is (97,95,0,48).
CMYK: (97,95,0,48) C97M95Y0K48 (97%,95%,0%,48%) (0.97/0.95/0.00/0.48)
04 | 06 | 85 | |
---|---|---|---|
RGB | 4 | 6 | 133 |
HSL | 239° | 94.16% | 26.86% |
HSB/HSV | 239° | 96.99% | 52.16% |
CMYK | 96.99% | 95.49% | 0.00% |
47.84% |
HEX | 04 | 06 | 85 |
Decimal | 4 | 6 | 133 |
Binary | 100 | 110 | 10000101 |
Octal | 4 | 6 | 205 |
Examples of css and html codes for elements with #040685 color. Also use rgb(4,6,133) instead hex code.
.myTextColor { color: #040685; }
<p style="color:#040685">This sample text font color is #040685.</p>
This text font color is #040685.
.myBgColor { background-color: #040685; }
<div style="background-color:#040685">Inner text</div>
This div background color is #040685.
.myBorderColor { border: 1px solid #040685; }
<div style="border:3px solid #040685">Div</div>
This div border color is #040685.
.myOpacity80 { color: #040685; opacity: 0.8; }
<p style="color:#040685;opacity:0.8;">80%</p>
Text with #040685 color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #040685;}
<p style="text-shadow: 3px 3px 1px #040685">Text here.</p>
This text has shadow with #040685 color.
.textShadow {text-shadow: 3px 3px 1px #040685, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #040685, 5px 5px 20px red">Text here.</p>
This text has shadow with #040685 primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#040685, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#040685, Direction=45, Strength=4)">Text</p>
This text has shadow with #040685 and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #040685; -webkit-box-shadow: 1px 1px 3px 2px #040685; box-shadow: 1px 1px 3px 2px #040685; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #040685; -webkit-box-shadow: 1px 1px 3px 2px #040685; box-shadow:1px 1px 3px 2px #040685;">
Div content here</div>
This text has color #040685 on black background.
This text has color #040685 on white background.
This text has black color on #040685 background.
This text has white color on #040685 background.