COLOR #312251

HEX: #312251
RGB: (49,34,81)

Color info

#312251 contains red, green and blue colors in about the same proportion. Web safe color of #312251 is #333366 (or #336).

RGB color model

#312251 color RGB value is (49,34,81).

  • red value is 49;
  • green value is 34;
  • blue value is 81.
RGB:
(49,34,81)
(19%,13%,32%)

RGB channels and saturation

R 49 of 255 = 19%
G 34 of 255 = 13%
B 81 of 255 = 32%

49
34
81

R + G + B ~ 21%. #312251 is dark color.

Portions of RGB colors in percentages

R + G + B =
49 + 34 + 81 = 164 (100%)
R 49 of 164 ~ 29.88%
G 34 of 164 ~ 20.73%
B 81 of 164 ~ 49.39%

%29.88
%20.73
%49.39

CMYK color model

#312251 color CMYK value is (40,58,0,68).

  • cyan value is 39.51%
  • magenta value is 58.02%
  • yellow value is 0.00%
  • key color value is 68.24%
CMYK:
(40,58,0,68)
C40M58Y0K68 
(40%,58%,0%,68%)
(0.40/0.58/0.00/0.68)	

CMYK percentages

%39.51
%58.02
%0
%68.24

Codes

Color #312251 in popluar color models

312251
RGB493481
HSL259°40.87%22.55%
HSB/HSV259°58.02%31.76%
CMYK39.51%58.02%0.00%
68.24%

Color #312251 in popluar number systems.

HEX312251
Decimal493481
Binary1100011000101010001
Octal6142121

Shades and tints

Shades of #312251

#312251
(49,34,81)
#2D1F4A
(45,31,74)
#291C43
(41,28,67)
#25193C
(37,25,60)
#211635
(33,22,53)
#1D132E
(29,19,46)
#191027
(25,16,39)
#150D20
(21,13,32)
#110A19
(17,10,25)
#0D0712
(13,7,18)
#09040B
(9,4,11)
#000000
(0,0,0)

Tints of #312251

#312251
(49,34,81)
#433660
(67,54,96)
#554A6F
(85,74,111)
#675E7E
(103,94,126)
#79728D
(121,114,141)
#8B869C
(139,134,156)
#9D9AAB
(157,154,171)
#AFAEBA
(175,174,186)
#C1C2C9
(193,194,201)
#D3D6D8
(211,214,216)
#E5EAE7
(229,234,231)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #312251 color. Also use rgb(49,34,81) instead hex code.

Text Font Color

.myTextColor { color: #312251; }

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

This text font color is #312251.


Background Color

.myBgColor { background-color: #312251; }

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

This div background color is #312251.


Border color

.myBorderColor { border: 1px solid #312251; }

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

This div border color is #312251.


Opacity

.myOpacity80 { color: #312251; opacity: 0.8; }

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

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

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

This text has shadow with #312251 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #312251 on black background.


Color preview on white background

This text has color #312251 on white background.



Black color preview on #312251 background

This text has black color on #312251 background.


White color preview on #312251 background

This text has white color on #312251 background.