COLOR #312858

HEX: #312858
RGB: (49,40,88)

Color info

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

RGB color model

#312858 color RGB value is (49,40,88).

  • red value is 49;
  • green value is 40;
  • blue value is 88.
RGB:
(49,40,88)
(19%,16%,35%)

RGB channels and saturation

R 49 of 255 = 19%
G 40 of 255 = 16%
B 88 of 255 = 35%

49
40
88

R + G + B ~ 23%. #312858 is dark color.

Portions of RGB colors in percentages

R + G + B =
49 + 40 + 88 = 177 (100%)
R 49 of 177 ~ 27.68%
G 40 of 177 ~ 22.6%
B 88 of 177 ~ 49.72%

%27.68
%22.6
%49.72

CMYK color model

#312858 color CMYK value is (44,55,0,65).

  • cyan value is 44.32%
  • magenta value is 54.55%
  • yellow value is 0.00%
  • key color value is 65.49%
CMYK:
(44,55,0,65)
C44M55Y0K65 
(44%,55%,0%,65%)
(0.44/0.55/0.00/0.65)	

CMYK percentages

%44.32
%54.55
%0
%65.49

Codes

Color #312858 in popluar color models

312858
RGB494088
HSL251°37.50%25.10%
HSB/HSV251°54.55%34.51%
CMYK44.32%54.55%0.00%
65.49%

Color #312858 in popluar number systems.

HEX312858
Decimal494088
Binary1100011010001011000
Octal6150130

Shades and tints

Shades of #312858

#312858
(49,40,88)
#2D2550
(45,37,80)
#292248
(41,34,72)
#251F40
(37,31,64)
#211C38
(33,28,56)
#1D1930
(29,25,48)
#191628
(25,22,40)
#151320
(21,19,32)
#111018
(17,16,24)
#0D0D10
(13,13,16)
#090A08
(9,10,8)
#000000
(0,0,0)

Tints of #312858

#312858
(49,40,88)
#433B67
(67,59,103)
#554E76
(85,78,118)
#676185
(103,97,133)
#797494
(121,116,148)
#8B87A3
(139,135,163)
#9D9AB2
(157,154,178)
#AFADC1
(175,173,193)
#C1C0D0
(193,192,208)
#D3D3DF
(211,211,223)
#E5E6EE
(229,230,238)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #312858 color. Also use rgb(49,40,88) instead hex code.

Text Font Color

.myTextColor { color: #312858; }

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

This text font color is #312858.


Background Color

.myBgColor { background-color: #312858; }

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

This div background color is #312858.


Border color

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

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

This div border color is #312858.


Opacity

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

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

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

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

This text has shadow with #312858 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #312858 on black background.


Color preview on white background

This text has color #312858 on white background.



Black color preview on #312858 background

This text has black color on #312858 background.


White color preview on #312858 background

This text has white color on #312858 background.