COLOR #2A4871

HEX: #2A4871
RGB: (42,72,113)

Color info

#2A4871 contains mainly green and blue colors. Web safe color of #2A4871 is #333366 (or #336).

RGB color model

#2A4871 color RGB value is (42,72,113).

  • red value is 42;
  • green value is 72;
  • blue value is 113.
RGB:
(42,72,113)
(16%,28%,44%)

RGB channels and saturation

R 42 of 255 = 16%
G 72 of 255 = 28%
B 113 of 255 = 44%

42
72
113

R + G + B ~ 29%. #2A4871 is quite dark color.

Portions of RGB colors in percentages

R + G + B =
42 + 72 + 113 = 227 (100%)
R 42 of 227 ~ 18.5%
G 72 of 227 ~ 31.72%
B 113 of 227 ~ 49.78%

%18.5
%31.72
%49.78

CMYK color model

#2A4871 color CMYK value is (63,36,0,56).

  • cyan value is 62.83%
  • magenta value is 36.28%
  • yellow value is 0.00%
  • key color value is 55.69%
CMYK:
(63,36,0,56)
C63M36Y0K56 
(63%,36%,0%,56%)
(0.63/0.36/0.00/0.56)	

CMYK percentages

%62.83
%36.28
%0
%55.69

Codes

Color #2A4871 in popluar color models

2A4871
RGB4272113
HSL215°45.81%30.39%
HSB/HSV215°62.83%44.31%
CMYK62.83%36.28%0.00%
55.69%

Color #2A4871 in popluar number systems.

HEX2A4871
Decimal4272113
Binary10101010010001110001
Octal52110161

Shades and tints

Shades of #2A4871

#2A4871
(42,72,113)
#274267
(39,66,103)
#243C5D
(36,60,93)
#213653
(33,54,83)
#1E3049
(30,48,73)
#1B2A3F
(27,42,63)
#182435
(24,36,53)
#151E2B
(21,30,43)
#121821
(18,24,33)
#0F1217
(15,18,23)
#0C0C0D
(12,12,13)
#000000
(0,0,0)

Tints of #2A4871

#2A4871
(42,72,113)
#3D587D
(61,88,125)
#506889
(80,104,137)
#637895
(99,120,149)
#7688A1
(118,136,161)
#8998AD
(137,152,173)
#9CA8B9
(156,168,185)
#AFB8C5
(175,184,197)
#C2C8D1
(194,200,209)
#D5D8DD
(213,216,221)
#E8E8E9
(232,232,233)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #2A4871 color. Also use rgb(42,72,113) instead hex code.

Text Font Color

.myTextColor { color: #2A4871; }

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

This text font color is #2A4871.


Background Color

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

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

This div background color is #2A4871.


Border color

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

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

This div border color is #2A4871.


Opacity

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

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

Text with #2A4871 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 #2A4871;}

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

This text has shadow with #2A4871 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #2A4871 on black background.


Color preview on white background

This text has color #2A4871 on white background.



Black color preview on #2A4871 background

This text has black color on #2A4871 background.


White color preview on #2A4871 background

This text has white color on #2A4871 background.