COLOR #331F56

HEX: #331F56
RGB: (51,31,86)

Color info

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

RGB color model

#331F56 color RGB value is (51,31,86).

  • red value is 51;
  • green value is 31;
  • blue value is 86.
RGB:
(51,31,86)
(20%,12%,34%)

RGB channels and saturation

R 51 of 255 = 20%
G 31 of 255 = 12%
B 86 of 255 = 34%

51
31
86

R + G + B ~ 22%. #331F56 is dark color.

Portions of RGB colors in percentages

R + G + B =
51 + 31 + 86 = 168 (100%)
R 51 of 168 ~ 30.36%
G 31 of 168 ~ 18.45%
B 86 of 168 ~ 51.19%

%30.36
%18.45
%51.19

CMYK color model

#331F56 color CMYK value is (41,64,0,66).

  • cyan value is 40.70%
  • magenta value is 63.95%
  • yellow value is 0.00%
  • key color value is 66.27%
CMYK:
(41,64,0,66)
C41M64Y0K66 
(41%,64%,0%,66%)
(0.41/0.64/0.00/0.66)	

CMYK percentages

%40.7
%63.95
%0
%66.27

Codes

Color #331F56 in popluar color models

331F56
RGB513186
HSL262°47.01%22.94%
HSB/HSV262°63.95%33.73%
CMYK40.70%63.95%0.00%
66.27%

Color #331F56 in popluar number systems.

HEX331F56
Decimal513186
Binary110011111111010110
Octal6337126

Shades and tints

Shades of #331F56

#331F56
(51,31,86)
#2F1D4F
(47,29,79)
#2B1B48
(43,27,72)
#271941
(39,25,65)
#23173A
(35,23,58)
#1F1533
(31,21,51)
#1B132C
(27,19,44)
#171125
(23,17,37)
#130F1E
(19,15,30)
#0F0D17
(15,13,23)
#0B0B10
(11,11,16)
#000000
(0,0,0)

Tints of #331F56

#331F56
(51,31,86)
#453365
(69,51,101)
#574774
(87,71,116)
#695B83
(105,91,131)
#7B6F92
(123,111,146)
#8D83A1
(141,131,161)
#9F97B0
(159,151,176)
#B1ABBF
(177,171,191)
#C3BFCE
(195,191,206)
#D5D3DD
(213,211,221)
#E7E7EC
(231,231,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #331F56 color. Also use rgb(51,31,86) instead hex code.

Text Font Color

.myTextColor { color: #331F56; }

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

This text font color is #331F56.


Background Color

.myBgColor { background-color: #331F56; }

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

This div background color is #331F56.


Border color

.myBorderColor { border: 1px solid #331F56; }

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

This div border color is #331F56.


Opacity

.myOpacity80 { color: #331F56; opacity: 0.8; }

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

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

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

This text has shadow with #331F56 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #331F56 on black background.


Color preview on white background

This text has color #331F56 on white background.



Black color preview on #331F56 background

This text has black color on #331F56 background.


White color preview on #331F56 background

This text has white color on #331F56 background.