COLOR #2B7A42

HEX: #2B7A42
RGB: (43,122,66)

Color info

#2B7A42 contains mainly green and blue colors. Web safe color of #2B7A42 is #336633 (or #363).

RGB color model

#2B7A42 color RGB value is (43,122,66).

  • red value is 43;
  • green value is 122;
  • blue value is 66.
RGB:
(43,122,66)
(17%,48%,26%)

RGB channels and saturation

R 43 of 255 = 17%
G 122 of 255 = 48%
B 66 of 255 = 26%

43
122
66

R + G + B ~ 30%. #2B7A42 is quite dark color.

Portions of RGB colors in percentages

R + G + B =
43 + 122 + 66 = 231 (100%)
R 43 of 231 ~ 18.61%
G 122 of 231 ~ 52.81%
B 66 of 231 ~ 28.57%

%18.61
%52.81
%28.57

CMYK color model

#2B7A42 color CMYK value is (65,0,46,52).

  • cyan value is 64.75%
  • magenta value is 0.00%
  • yellow value is 45.90%
  • key color value is 52.16%
CMYK:
(65,0,46,52)
C65M0Y46K52 
(65%,0%,46%,52%)
(0.65/0.00/0.46/0.52)	

CMYK percentages

%64.75
%0
%45.9
%52.16

Codes

Color #2B7A42 in popluar color models

2B7A42
RGB4312266
HSL137°47.88%32.35%
HSB/HSV137°64.75%47.84%
CMYK64.75%0.00%45.90%
52.16%

Color #2B7A42 in popluar number systems.

HEX2B7A42
Decimal4312266
Binary10101111110101000010
Octal53172102

Shades and tints

Shades of #2B7A42

#2B7A42
(43,122,66)
#286F3C
(40,111,60)
#256436
(37,100,54)
#225930
(34,89,48)
#1F4E2A
(31,78,42)
#1C4324
(28,67,36)
#19381E
(25,56,30)
#162D18
(22,45,24)
#132212
(19,34,18)
#10170C
(16,23,12)
#0D0C06
(13,12,6)
#000000
(0,0,0)

Tints of #2B7A42

#2B7A42
(43,122,66)
#3E8653
(62,134,83)
#519264
(81,146,100)
#649E75
(100,158,117)
#77AA86
(119,170,134)
#8AB697
(138,182,151)
#9DC2A8
(157,194,168)
#B0CEB9
(176,206,185)
#C3DACA
(195,218,202)
#D6E6DB
(214,230,219)
#E9F2EC
(233,242,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #2B7A42 color. Also use rgb(43,122,66) instead hex code.

Text Font Color

.myTextColor { color: #2B7A42; }

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

This text font color is #2B7A42.


Background Color

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

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

This div background color is #2B7A42.


Border color

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

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

This div border color is #2B7A42.


Opacity

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

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

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

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

This text has shadow with #2B7A42 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #2B7A42 on black background.


Color preview on white background

This text has color #2B7A42 on white background.



Black color preview on #2B7A42 background

This text has black color on #2B7A42 background.


White color preview on #2B7A42 background

This text has white color on #2B7A42 background.