COLOR #2A4E1F

HEX: #2A4E1F
RGB: (42,78,31)

Color info

#2A4E1F contains red, green and blue colors in about the same proportion. Web safe color of #2A4E1F is #336633 (or #363).

RGB color model

#2A4E1F color RGB value is (42,78,31).

  • red value is 42;
  • green value is 78;
  • blue value is 31.
RGB:
(42,78,31)
(16%,31%,12%)

RGB channels and saturation

R 42 of 255 = 16%
G 78 of 255 = 31%
B 31 of 255 = 12%

42
78
31

R + G + B ~ 20%. #2A4E1F is dark color.

Portions of RGB colors in percentages

R + G + B =
42 + 78 + 31 = 151 (100%)
R 42 of 151 ~ 27.81%
G 78 of 151 ~ 51.66%
B 31 of 151 ~ 20.53%

%27.81
%51.66
%20.53

CMYK color model

#2A4E1F color CMYK value is (46,0,60,69).

  • cyan value is 46.15%
  • magenta value is 0.00%
  • yellow value is 60.26%
  • key color value is 69.41%
CMYK:
(46,0,60,69)
C46M0Y60K69 
(46%,0%,60%,69%)
(0.46/0.00/0.60/0.69)	

CMYK percentages

%46.15
%0
%60.26
%69.41

Codes

Color #2A4E1F in popluar color models

2A4E1F
RGB427831
HSL106°43.12%21.37%
HSB/HSV106°60.26%30.59%
CMYK46.15%0.00%60.26%
69.41%

Color #2A4E1F in popluar number systems.

HEX2A4E1F
Decimal427831
Binary101010100111011111
Octal5211637

Shades and tints

Shades of #2A4E1F

#2A4E1F
(42,78,31)
#27471D
(39,71,29)
#24401B
(36,64,27)
#213919
(33,57,25)
#1E3217
(30,50,23)
#1B2B15
(27,43,21)
#182413
(24,36,19)
#151D11
(21,29,17)
#12160F
(18,22,15)
#0F0F0D
(15,15,13)
#0C080B
(12,8,11)
#000000
(0,0,0)

Tints of #2A4E1F

#2A4E1F
(42,78,31)
#3D5E33
(61,94,51)
#506E47
(80,110,71)
#637E5B
(99,126,91)
#768E6F
(118,142,111)
#899E83
(137,158,131)
#9CAE97
(156,174,151)
#AFBEAB
(175,190,171)
#C2CEBF
(194,206,191)
#D5DED3
(213,222,211)
#E8EEE7
(232,238,231)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #2A4E1F color. Also use rgb(42,78,31) instead hex code.

Text Font Color

.myTextColor { color: #2A4E1F; }

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

This text font color is #2A4E1F.


Background Color

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

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

This div background color is #2A4E1F.


Border color

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

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

This div border color is #2A4E1F.


Opacity

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

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

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

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

This text has shadow with #2A4E1F color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #2A4E1F on black background.


Color preview on white background

This text has color #2A4E1F on white background.



Black color preview on #2A4E1F background

This text has black color on #2A4E1F background.


White color preview on #2A4E1F background

This text has white color on #2A4E1F background.