COLOR #331F4C

HEX: #331F4C
RGB: (51,31,76)

Color info

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

RGB color model

#331F4C color RGB value is (51,31,76).

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

RGB channels and saturation

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

51
31
76

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

Portions of RGB colors in percentages

R + G + B =
51 + 31 + 76 = 158 (100%)
R 51 of 158 ~ 32.28%
G 31 of 158 ~ 19.62%
B 76 of 158 ~ 48.1%

%32.28
%19.62
%48.1

CMYK color model

#331F4C color CMYK value is (33,59,0,70).

  • cyan value is 32.89%
  • magenta value is 59.21%
  • yellow value is 0.00%
  • key color value is 70.20%
CMYK:
(33,59,0,70)
C33M59Y0K70 
(33%,59%,0%,70%)
(0.33/0.59/0.00/0.70)	

CMYK percentages

%32.89
%59.21
%0
%70.2

Codes

Color #331F4C in popluar color models

331F4C
RGB513176
HSL267°42.06%20.98%
HSB/HSV267°59.21%29.80%
CMYK32.89%59.21%0.00%
70.20%

Color #331F4C in popluar number systems.

HEX331F4C
Decimal513176
Binary110011111111001100
Octal6337114

Shades and tints

Shades of #331F4C

#331F4C
(51,31,76)
#2F1D46
(47,29,70)
#2B1B40
(43,27,64)
#27193A
(39,25,58)
#231734
(35,23,52)
#1F152E
(31,21,46)
#1B1328
(27,19,40)
#171122
(23,17,34)
#130F1C
(19,15,28)
#0F0D16
(15,13,22)
#0B0B10
(11,11,16)
#000000
(0,0,0)

Tints of #331F4C

#331F4C
(51,31,76)
#45335C
(69,51,92)
#57476C
(87,71,108)
#695B7C
(105,91,124)
#7B6F8C
(123,111,140)
#8D839C
(141,131,156)
#9F97AC
(159,151,172)
#B1ABBC
(177,171,188)
#C3BFCC
(195,191,204)
#D5D3DC
(213,211,220)
#E7E7EC
(231,231,236)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #331F4C; }

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

This text font color is #331F4C.


Background Color

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

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

This div background color is #331F4C.


Border color

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

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

This div border color is #331F4C.


Opacity

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

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

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

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

This text has shadow with #331F4C color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #331F4C on black background.


Color preview on white background

This text has color #331F4C on white background.



Black color preview on #331F4C background

This text has black color on #331F4C background.


White color preview on #331F4C background

This text has white color on #331F4C background.