COLOR #331156

HEX: #331156
RGB: (51,17,86)

Color info

#331156 contains mainly red and blue colors. Web safe color of #331156 is #330066 (or #306).

RGB color model

#331156 color RGB value is (51,17,86).

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

RGB channels and saturation

R 51 of 255 = 20%
G 17 of 255 = 7%
B 86 of 255 = 34%

51
17
86

R + G + B ~ 20%. #331156 is dark color.

Portions of RGB colors in percentages

R + G + B =
51 + 17 + 86 = 154 (100%)
R 51 of 154 ~ 33.12%
G 17 of 154 ~ 11.04%
B 86 of 154 ~ 55.84%

%33.12
%11.04
%55.84

CMYK color model

#331156 color CMYK value is (41,80,0,66).

  • cyan value is 40.70%
  • magenta value is 80.23%
  • yellow value is 0.00%
  • key color value is 66.27%
CMYK:
(41,80,0,66)
C41M80Y0K66 
(41%,80%,0%,66%)
(0.41/0.80/0.00/0.66)	

CMYK percentages

%40.7
%80.23
%0
%66.27

Codes

Color #331156 in popluar color models

331156
RGB511786
HSL270°66.99%20.20%
HSB/HSV270°80.23%33.73%
CMYK40.70%80.23%0.00%
66.27%

Color #331156 in popluar number systems.

HEX331156
Decimal511786
Binary110011100011010110
Octal6321126

Shades and tints

Shades of #331156

#331156
(51,17,86)
#2F104F
(47,16,79)
#2B0F48
(43,15,72)
#270E41
(39,14,65)
#230D3A
(35,13,58)
#1F0C33
(31,12,51)
#1B0B2C
(27,11,44)
#170A25
(23,10,37)
#13091E
(19,9,30)
#0F0817
(15,8,23)
#0B0710
(11,7,16)
#000000
(0,0,0)

Tints of #331156

#331156
(51,17,86)
#452665
(69,38,101)
#573B74
(87,59,116)
#695083
(105,80,131)
#7B6592
(123,101,146)
#8D7AA1
(141,122,161)
#9F8FB0
(159,143,176)
#B1A4BF
(177,164,191)
#C3B9CE
(195,185,206)
#D5CEDD
(213,206,221)
#E7E3EC
(231,227,236)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #331156; }

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

This text font color is #331156.


Background Color

.myBgColor { background-color: #331156; }

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

This div background color is #331156.


Border color

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

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

This div border color is #331156.


Opacity

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

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

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

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

This text has shadow with #331156 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #331156 on black background.


Color preview on white background

This text has color #331156 on white background.



Black color preview on #331156 background

This text has black color on #331156 background.


White color preview on #331156 background

This text has white color on #331156 background.