COLOR #2A5795

HEX: #2A5795 RGB: (42,87,149)

Color info

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

RGB color model

#2A5795 color RGB value is (42,87,149).

RGB: (42,87,149) (16%, 34%, 58%)

RGB channels and saturation

R 42 of 255 = 16%
G 87 of 255 = 34%
B 149 of 255 = 58%

42
87
149

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

Portions of RGB colors in percentages

R + G + B = 42 + 87 + 149 = 278 (100%)
R 42 of 278 ~ 15.11%
G 87 of 278 ~ 31.29%
B 149 of 278 ~ 53.6'%

%15.11
%31.29
%53.6

CMYK color model

#2A5795 color CMYK value is (72,42,0,42).

  • cyan value is 71.81%
  • magenta value is 41.61%
  • yellow value is 0.00%
  • key color value is 41.57%

CMYK: (72,42,0,42)
C72M42Y0K42 (72%, 42%, 0%, 42%)
(0.72 / 0.42 / 0.00 / 0.42)

CMYK percentages

%71.81
%41.61
%0
%41.57

Codes

Color #2A5795 in popluar color models

2A 57 95
RGB 42 87 149
HSL 215° 56.02% 37.45%
HSB/HSV 215° 71.81% 58.43%
CMYK 71.81% 41.61% 0.00%
41.57%

Color #2A5795 in popluar number systems.

HEX 2A 57 95
Decimal 42 87 149
Binary 101010 1010111 10010101
Octal 52 127 225

Shades and tints

Shades of #2A5795

#2A5795
(42,87,149)
#275088
(39,80,136)
#24497B
(36,73,123)
#21426E
(33,66,110)
#1E3B61
(30,59,97)
#1B3454
(27,52,84)
#182D47
(24,45,71)
#15263A
(21,38,58)
#121F2D
(18,31,45)
#0F1820
(15,24,32)
#0C1113
(12,17,19)
#000000
(0,0,0)

Tints of #2A5795

#2A5795
(42,87,149)
#3D669E
(61,102,158)
#5075A7
(80,117,167)
#6384B0
(99,132,176)
#7693B9
(118,147,185)
#89A2C2
(137,162,194)
#9CB1CB
(156,177,203)
#AFC0D4
(175,192,212)
#C2CFDD
(194,207,221)
#D5DEE6
(213,222,230)
#E8EDEF
(232,237,239)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #2A5795 color. Also use rgb(42,87,149) instead hex code.

Text Font Color

.myTextColor { color: #2A5795; }

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

This text font color is #2A5795.

Background Color

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

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

This div background color is #2A5795.

Border color

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

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

This div border color is #2A5795.

Opacity

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

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

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

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

This text has shadow with #2A5795 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #2A5795.

Preview

Color preview on black background

This text has color #2A5795 on black background.


Color preview on white background

This text has color #2A5795 on white background.


Black color preview on #2A5795 background

This text has black color on #2A5795 background.


White color preview on #2A5795 background

This text has white color on #2A5795 background.


Related colors

Complementary color

Complementary color for #hex is #D5A86A.


I love getcolorcode.com

Triadic colors

1 #952A57 and #57952A with #2A5795 are triadic colors.

2 #95572A and #572A95 with #2A5795 are triadic colors.