COLOR #331F4D

HEX: #331F4D
RGB: (51,31,77)

Color info

#331F4D contains red, green and blue colors in about the same proportion. Web safe color of #331F4D is #333333 (or #333).

RGB color model

#331F4D color RGB value is (51,31,77).

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

RGB channels and saturation

R 51 of 255 = 20%
G 31 of 255 = 12%
B 77 of 255 = 30%

51
31
77

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

Portions of RGB colors in percentages

R + G + B =
51 + 31 + 77 = 159 (100%)
R 51 of 159 ~ 32.08%
G 31 of 159 ~ 19.5%
B 77 of 159 ~ 48.43%

%32.08
%19.5
%48.43

CMYK color model

#331F4D color CMYK value is (34,60,0,70).

  • cyan value is 33.77%
  • magenta value is 59.74%
  • yellow value is 0.00%
  • key color value is 69.80%
CMYK:
(34,60,0,70)
C34M60Y0K70 
(34%,60%,0%,70%)
(0.34/0.60/0.00/0.70)	

CMYK percentages

%33.77
%59.74
%0
%69.8

Codes

Color #331F4D in popluar color models

331F4D
RGB513177
HSL266°42.59%21.18%
HSB/HSV266°59.74%30.20%
CMYK33.77%59.74%0.00%
69.80%

Color #331F4D in popluar number systems.

HEX331F4D
Decimal513177
Binary110011111111001101
Octal6337115

Shades and tints

Shades of #331F4D

#331F4D
(51,31,77)
#2F1D46
(47,29,70)
#2B1B3F
(43,27,63)
#271938
(39,25,56)
#231731
(35,23,49)
#1F152A
(31,21,42)
#1B1323
(27,19,35)
#17111C
(23,17,28)
#130F15
(19,15,21)
#0F0D0E
(15,13,14)
#0B0B07
(11,11,7)
#000000
(0,0,0)

Tints of #331F4D

#331F4D
(51,31,77)
#45335D
(69,51,93)
#57476D
(87,71,109)
#695B7D
(105,91,125)
#7B6F8D
(123,111,141)
#8D839D
(141,131,157)
#9F97AD
(159,151,173)
#B1ABBD
(177,171,189)
#C3BFCD
(195,191,205)
#D5D3DD
(213,211,221)
#E7E7ED
(231,231,237)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #331F4D; }

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

This text font color is #331F4D.


Background Color

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

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

This div background color is #331F4D.


Border color

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

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

This div border color is #331F4D.


Opacity

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

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

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

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

This text has shadow with #331F4D color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #331F4D on black background.


Color preview on white background

This text has color #331F4D on white background.



Black color preview on #331F4D background

This text has black color on #331F4D background.


White color preview on #331F4D background

This text has white color on #331F4D background.