HEX: #2F5AAA
RGB: (47,90,170)
#2F5AAA contains mainly blue color. Web safe color of #2F5AAA is #336699 (or #369).
#2F5AAA color RGB value is (47,90,170).
RGB: (47,90,170) (18%,35%,67%)
R 47 of 255 = 18%
G 90 of 255 = 35%
B 170 of 255 = 67%
R + G + B ~ 40%. #2F5AAA is middle color (not dark and not light).
R + G + B =
47 + 90 + 170 = 307 (100%)
R 47 of 307 ~ 15.31%
G 90 of 307 ~ 29.32%
B 170 of 307 ~ 55.37%
#2F5AAA color CMYK value is (72,47,0,33).
CMYK: (72,47,0,33) C72M47Y0K33 (72%,47%,0%,33%) (0.72/0.47/0.00/0.33)
2F | 5A | AA | |
---|---|---|---|
RGB | 47 | 90 | 170 |
HSL | 219° | 56.68% | 42.55% |
HSB/HSV | 219° | 72.35% | 66.67% |
CMYK | 72.35% | 47.06% | 0.00% |
33.33% |
HEX | 2F | 5A | AA |
Decimal | 47 | 90 | 170 |
Binary | 101111 | 1011010 | 10101010 |
Octal | 57 | 132 | 252 |
Examples of css and html codes for elements with #2F5AAA color. Also use rgb(47,90,170) instead hex code.
.myTextColor { color: #2F5AAA; }
<p style="color:#2F5AAA">This sample text font color is #2F5AAA.</p>
This text font color is #2F5AAA.
.myBgColor { background-color: #2F5AAA; }
<div style="background-color:#2F5AAA">Inner text</div>
This div background color is #2F5AAA.
.myBorderColor { border: 1px solid #2F5AAA; }
<div style="border:3px solid #2F5AAA">Div</div>
This div border color is #2F5AAA.
.myOpacity80 { color: #2F5AAA; opacity: 0.8; }
<p style="color:#2F5AAA;opacity:0.8;">80%</p>
Text with #2F5AAA color and opacity 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #2F5AAA;}
<p style="text-shadow: 3px 3px 1px #2F5AAA">Text here.</p>
This text has shadow with #2F5AAA color.
.textShadow {text-shadow: 3px 3px 1px #2F5AAA, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #2F5AAA, 5px 5px 20px red">Text here.</p>
This text has shadow with #2F5AAA primary color and red secondary color.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#2F5AAA, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#2F5AAA, Direction=45, Strength=4)">Text</p>
This text has shadow with #2F5AAA and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #2F5AAA; -webkit-box-shadow: 1px 1px 3px 2px #2F5AAA; box-shadow: 1px 1px 3px 2px #2F5AAA; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #2F5AAA; -webkit-box-shadow: 1px 1px 3px 2px #2F5AAA; box-shadow:1px 1px 3px 2px #2F5AAA;">
Div content here</div>
This text has color #2F5AAA on black background.
This text has color #2F5AAA on white background.
This text has black color on #2F5AAA background.
This text has white color on #2F5AAA background.