HEX: #120A8A
RGB: (18,10,138)
#120A8A contains mainly blue color. Web safe color of #120A8A is #000099 (or #009).
#120A8A color RGB value is (18,10,138).
RGB: (18,10,138) (7%,4%,54%)
R 18 of 255 = 7%
G 10 of 255 = 4%
B 138 of 255 = 54%
R + G + B ~ 22%. #120A8A is dark color.
R + G + B =
18 + 10 + 138 = 166 (100%)
R 18 of 166 ~ 10.84%
G 10 of 166 ~ 6.02%
B 138 of 166 ~ 83.13%
#120A8A color CMYK value is (87,93,0,46).
CMYK: (87,93,0,46) C87M93Y0K46 (87%,93%,0%,46%) (0.87/0.93/0.00/0.46)
12 | 0A | 8A | |
---|---|---|---|
RGB | 18 | 10 | 138 |
HSL | 244° | 86.49% | 29.02% |
HSB/HSV | 244° | 92.75% | 54.12% |
CMYK | 86.96% | 92.75% | 0.00% |
45.88% |
HEX | 12 | 0A | 8A |
Decimal | 18 | 10 | 138 |
Binary | 10010 | 1010 | 10001010 |
Octal | 22 | 12 | 212 |
Examples of css and html codes for elements with #120A8A color. Also use rgb(18,10,138) instead hex code.
.myTextColor { color: #120A8A; }
<p style="color:#120A8A">This sample text font color is #120A8A.</p>
This text font color is #120A8A.
.myBgColor { background-color: #120A8A; }
<div style="background-color:#120A8A">Inner text</div>
This div background color is #120A8A.
.myBorderColor { border: 1px solid #120A8A; }
<div style="border:3px solid #120A8A">Div</div>
This div border color is #120A8A.
.myOpacity80 { color: #120A8A; opacity: 0.8; }
<p style="color:#120A8A;opacity:0.8;">80%</p>
Text with #120A8A color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #120A8A;}
<p style="text-shadow: 3px 3px 1px #120A8A">Text here.</p>
This text has shadow with #120A8A color.
.textShadow {text-shadow: 3px 3px 1px #120A8A, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #120A8A, 5px 5px 20px red">Text here.</p>
This text has shadow with #120A8A primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#120A8A, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#120A8A, Direction=45, Strength=4)">Text</p>
This text has shadow with #120A8A and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #120A8A; -webkit-box-shadow: 1px 1px 3px 2px #120A8A; box-shadow: 1px 1px 3px 2px #120A8A; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #120A8A; -webkit-box-shadow: 1px 1px 3px 2px #120A8A; box-shadow:1px 1px 3px 2px #120A8A;">
Div content here</div>
This text has color #120A8A on black background.
This text has color #120A8A on white background.
This text has black color on #120A8A background.
This text has white color on #120A8A background.