COLOR #331D5E

HEX: #331D5E
RGB: (51,29,94)

Color info

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

RGB color model

#331D5E color RGB value is (51,29,94).

  • red value is 51;
  • green value is 29;
  • blue value is 94.
RGB:
(51,29,94)
(20%,11%,37%)

RGB channels and saturation

R 51 of 255 = 20%
G 29 of 255 = 11%
B 94 of 255 = 37%

51
29
94

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

Portions of RGB colors in percentages

R + G + B =
51 + 29 + 94 = 174 (100%)
R 51 of 174 ~ 29.31%
G 29 of 174 ~ 16.67%
B 94 of 174 ~ 54.02%

%29.31
%16.67
%54.02

CMYK color model

#331D5E color CMYK value is (46,69,0,63).

  • cyan value is 45.74%
  • magenta value is 69.15%
  • yellow value is 0.00%
  • key color value is 63.14%
CMYK:
(46,69,0,63)
C46M69Y0K63 
(46%,69%,0%,63%)
(0.46/0.69/0.00/0.63)	

CMYK percentages

%45.74
%69.15
%0
%63.14

Codes

Color #331D5E in popluar color models

331D5E
RGB512994
HSL260°52.85%24.12%
HSB/HSV260°69.15%36.86%
CMYK45.74%69.15%0.00%
63.14%

Color #331D5E in popluar number systems.

HEX331D5E
Decimal512994
Binary110011111011011110
Octal6335136

Shades and tints

Shades of #331D5E

#331D5E
(51,29,94)
#2F1B56
(47,27,86)
#2B194E
(43,25,78)
#271746
(39,23,70)
#23153E
(35,21,62)
#1F1336
(31,19,54)
#1B112E
(27,17,46)
#170F26
(23,15,38)
#130D1E
(19,13,30)
#0F0B16
(15,11,22)
#0B090E
(11,9,14)
#000000
(0,0,0)

Tints of #331D5E

#331D5E
(51,29,94)
#45316C
(69,49,108)
#57457A
(87,69,122)
#695988
(105,89,136)
#7B6D96
(123,109,150)
#8D81A4
(141,129,164)
#9F95B2
(159,149,178)
#B1A9C0
(177,169,192)
#C3BDCE
(195,189,206)
#D5D1DC
(213,209,220)
#E7E5EA
(231,229,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #331D5E color. Also use rgb(51,29,94) instead hex code.

Text Font Color

.myTextColor { color: #331D5E; }

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

This text font color is #331D5E.


Background Color

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

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

This div background color is #331D5E.


Border color

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

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

This div border color is #331D5E.


Opacity

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

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

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

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

This text has shadow with #331D5E color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #331D5E on black background.


Color preview on white background

This text has color #331D5E on white background.



Black color preview on #331D5E background

This text has black color on #331D5E background.


White color preview on #331D5E background

This text has white color on #331D5E background.