COLOR #2A4F9E

HEX: #2A4F9E
RGB: (42,79,158)

Color info

#2A4F9E contains mainly blue color. Web safe color of #2A4F9E is #336699 (or #369).

RGB color model

#2A4F9E color RGB value is (42,79,158).

  • red value is 42;
  • green value is 79;
  • blue value is 158.
RGB:
(42,79,158)
(16%,31%,62%)

RGB channels and saturation

R 42 of 255 = 16%
G 79 of 255 = 31%
B 158 of 255 = 62%

42
79
158

R + G + B ~ 36%. #2A4F9E is quite dark color.

Portions of RGB colors in percentages

R + G + B =
42 + 79 + 158 = 279 (100%)
R 42 of 279 ~ 15.05%
G 79 of 279 ~ 28.32%
B 158 of 279 ~ 56.63%

%15.05
%28.32
%56.63

CMYK color model

#2A4F9E color CMYK value is (73,50,0,38).

  • cyan value is 73.42%
  • magenta value is 50.00%
  • yellow value is 0.00%
  • key color value is 38.04%
CMYK:
(73,50,0,38)
C73M50Y0K38 
(73%,50%,0%,38%)
(0.73/0.50/0.00/0.38)	

CMYK percentages

%73.42
%50
%0
%38.04

Codes

Color #2A4F9E in popluar color models

2A4F9E
RGB4279158
HSL221°58.00%39.22%
HSB/HSV221°73.42%61.96%
CMYK73.42%50.00%0.00%
38.04%

Color #2A4F9E in popluar number systems.

HEX2A4F9E
Decimal4279158
Binary101010100111110011110
Octal52117236

Shades and tints

Shades of #2A4F9E

#2A4F9E
(42,79,158)
#274890
(39,72,144)
#244182
(36,65,130)
#213A74
(33,58,116)
#1E3366
(30,51,102)
#1B2C58
(27,44,88)
#18254A
(24,37,74)
#151E3C
(21,30,60)
#12172E
(18,23,46)
#0F1020
(15,16,32)
#0C0912
(12,9,18)
#000000
(0,0,0)

Tints of #2A4F9E

#2A4F9E
(42,79,158)
#3D5FA6
(61,95,166)
#506FAE
(80,111,174)
#637FB6
(99,127,182)
#768FBE
(118,143,190)
#899FC6
(137,159,198)
#9CAFCE
(156,175,206)
#AFBFD6
(175,191,214)
#C2CFDE
(194,207,222)
#D5DFE6
(213,223,230)
#E8EFEE
(232,239,238)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #2A4F9E color. Also use rgb(42,79,158) instead hex code.

Text Font Color

.myTextColor { color: #2A4F9E; }

<p style="color:#2A4F9E">This sample text font color is #2A4F9E.</p>

This text font color is #2A4F9E.


Background Color

.myBgColor { background-color: #2A4F9E; }

<div style="background-color:#2A4F9E">Inner text</div>

This div background color is #2A4F9E.


Border color

.myBorderColor { border: 1px solid #2A4F9E; }

<div style="border:3px solid #2A4F9E">Div</div>

This div border color is #2A4F9E.


Opacity

.myOpacity80 { color: #2A4F9E; opacity: 0.8; }

<p style="color:#2A4F9E;opacity:0.8;">80%</p>

Text with #2A4F9E color and opacity 100% | 80% | 50% | 30%.

Background with opacity value 100%.

Background with opacity value 80%.

Background with opacity value 50%.

Background with opacity value 30%.

Text shadow color

.textShadow {text-shadow: 3px 3px 1px #2A4F9E;}

<p style="text-shadow: 3px 3px 1px #2A4F9E">Text here.</p>

This text has shadow with #2A4F9E color.

.textShadow {text-shadow: 3px 3px 1px #2A4F9E, 3px 3px 1px red;}

<p style="text-shadow: 3px 3px 1px #2A4F9E, 5px 5px 20px red">Text here.</p>

This text has shadow with #2A4F9E primary color and red secondary color.


Styles for old Internet Explorer:
.textShadow {filter: Shadow(Color=#2A4F9E, Direction=45, Strength=4)}

<p style="filter: Shadow(Color=#2A4F9E, Direction=45, Strength=4)">Text</p>

This text has shadow with #2A4F9E and red colors in old Internet Explorer.


Div box shadow color

/* css code */
.divShadow
{
  -moz-box-shadow:	1px 1px 3px 2px #2A4F9E;
  -webkit-box-shadow:	1px 1px 3px 2px #2A4F9E;
  box-shadow:		1px 1px 3px 2px #2A4F9E;
}

/* html code with inline style */
<div style="-moz-box-shadow: 1px 1px 3px 2px #2A4F9E;
-webkit-box-shadow: 1px 1px 3px 2px #2A4F9E;
box-shadow:1px 1px 3px 2px #2A4F9E;">
Div content here</div>
This div box has shadow with color #2A4F9E.

Preview

Color preview on black background

This text has color #2A4F9E on black background.


Color preview on white background

This text has color #2A4F9E on white background.



Black color preview on #2A4F9E background

This text has black color on #2A4F9E background.


White color preview on #2A4F9E background

This text has white color on #2A4F9E background.