HEX: #2F51AB
RGB: (47,81,171)
#2F51AB enthält hauptsächlich blaue Farbe. Für #2F51AB ist eine «websichere» Webfarbe #336699 (oder kurz #369).
Die Farbe #2F51AB wird in RGB als (47,81,171) definiert.
RGB: (47,81,171) (18%,32%,67%)
R 47 von 255 = 18%
G 81 von 255 = 32%
B 171 von 255 = 67%
R + G + B ~ 39%. #2F51AB ziemlich dunkle Farbe.
R + G + B =
47 + 81 + 171 = 299 (100%)
R 47 von 299 ~ 15.72%
G 81 von 299 ~ 27.09%
B 171 von 299 ~ 57.19%
Die Farbe #2F51AB wird in CMYK als (73,53,0,33) definiert.
CMYK: (73,53,0,33) C73M53Y0K33 (73%,53%,0%,33%) (0.73/0.53/0.00/0.33)
2F | 51 | AB | |
---|---|---|---|
RGB | 47 | 81 | 171 |
HSL | 224° | 56.88% | 42.75% |
HSB/HSV | 224° | 72.51% | 67.06% |
CMYK | 72.51% | 52.63% | 0.00% |
32.94% |
Hexadezimal | 2F | 51 | AB |
Dezimal | 47 | 81 | 171 |
Binär | 101111 | 1010001 | 10101011 |
Oktal | 57 | 121 | 253 |
Beispiele css- und html für Elemente in der Farbe #2F51AB. Bitte benutzen Sie auch rgb(47,81,171) statt hex-Code.
.myTextColor { color: #2F51AB; }
<p style="color:#2F51AB">This sample text font color is #2F51AB.</p>
Die Farbe dieses Textes ist #2F51AB.
.myBgColor { background-color: #2F51AB; }
<div style="background-color:#2F51AB">Inner text</div>
Der Hintergrund von diesem div ist in Farbe #2F51AB.
.myBorderColor { border: 1px solid #2F51AB; }
<div style="border:3px solid #2F51AB">Div</div>
Die Grenzen von diesem div sind in Farbe #2F51AB.
.myOpacity80 { color: #2F51AB; opacity: 0.8; }
<p style="color:#2F51AB;opacity:0.8;">80%</p>
Text in Farbe #2F51AB und mit Transparenz 100% | 80% | 50% | 30%.
.textShadow {text-shadow: 3px 3px 1px #2F51AB;}
<p style="text-shadow: 3px 3px 1px #2F51AB">Text here.</p>
Dieser Text hat den Schatten in Farbe #2F51AB.
.textShadow {text-shadow: 3px 3px 1px #2F51AB, 3px 3px 1px red;}
<p style="text-shadow: 3px 3px 1px #2F51AB, 5px 5px 20px red">Text here.</p>
Dieser Text hat den Schatten in Grundfarbe #2F51AB und zusätzlichem Rot.
Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#2F51AB, Direction=45, Strength=4)}
<p style="filter: Shadow(Color=#2F51AB, Direction=45, Strength=4)">Text</p>
This text has shadow with #2F51AB and red colors in old Internet Explorer.
/* css code */ .divShadow { -moz-box-shadow: 1px 1px 3px 2px #2F51AB; -webkit-box-shadow: 1px 1px 3px 2px #2F51AB; box-shadow: 1px 1px 3px 2px #2F51AB; } /* html code with inline style */ <div style="-moz-box-shadow: 1px 1px 3px 2px #2F51AB; -webkit-box-shadow: 1px 1px 3px 2px #2F51AB; box-shadow:1px 1px 3px 2px #2F51AB;">
Div content here</div>
Dieser Text ist in der Farbe #2F51AB auf dem schwarzen Hintergrund.
Dieser Text ist in Farbe #2F51AB auf dem weißen Hintergrund.
Dieser Text ist schwarz auf dem Hintergrund in Farbe #2F51AB.
Dieser Text ist weiß auf dem Hintergrund in Farbe #2F51AB.