COLOR #331F5F

HEX: #331F5F
RGB: (51,31,95)

Color info

#331F5F contains mainly red and blue colors. Web safe color of #331F5F is #333366 (or #336).

RGB color model

#331F5F color RGB value is (51,31,95).

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

RGB channels and saturation

R 51 of 255 = 20%
G 31 of 255 = 12%
B 95 of 255 = 37%

51
31
95

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

Portions of RGB colors in percentages

R + G + B =
51 + 31 + 95 = 177 (100%)
R 51 of 177 ~ 28.81%
G 31 of 177 ~ 17.51%
B 95 of 177 ~ 53.67%

%28.81
%17.51
%53.67

CMYK color model

#331F5F color CMYK value is (46,67,0,63).

  • cyan value is 46.32%
  • magenta value is 67.37%
  • yellow value is 0.00%
  • key color value is 62.75%
CMYK:
(46,67,0,63)
C46M67Y0K63 
(46%,67%,0%,63%)
(0.46/0.67/0.00/0.63)	

CMYK percentages

%46.32
%67.37
%0
%62.75

Codes

Color #331F5F in popluar color models

331F5F
RGB513195
HSL259°50.79%24.71%
HSB/HSV259°67.37%37.25%
CMYK46.32%67.37%0.00%
62.75%

Color #331F5F in popluar number systems.

HEX331F5F
Decimal513195
Binary110011111111011111
Octal6337137

Shades and tints

Shades of #331F5F

#331F5F
(51,31,95)
#2F1D57
(47,29,87)
#2B1B4F
(43,27,79)
#271947
(39,25,71)
#23173F
(35,23,63)
#1F1537
(31,21,55)
#1B132F
(27,19,47)
#171127
(23,17,39)
#130F1F
(19,15,31)
#0F0D17
(15,13,23)
#0B0B0F
(11,11,15)
#000000
(0,0,0)

Tints of #331F5F

#331F5F
(51,31,95)
#45336D
(69,51,109)
#57477B
(87,71,123)
#695B89
(105,91,137)
#7B6F97
(123,111,151)
#8D83A5
(141,131,165)
#9F97B3
(159,151,179)
#B1ABC1
(177,171,193)
#C3BFCF
(195,191,207)
#D5D3DD
(213,211,221)
#E7E7EB
(231,231,235)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #331F5F; }

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

This text font color is #331F5F.


Background Color

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

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

This div background color is #331F5F.


Border color

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

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

This div border color is #331F5F.


Opacity

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

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

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

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

This text has shadow with #331F5F color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #331F5F on black background.


Color preview on white background

This text has color #331F5F on white background.



Black color preview on #331F5F background

This text has black color on #331F5F background.


White color preview on #331F5F background

This text has white color on #331F5F background.