COLOR #331F9D

HEX: #331F9D
RGB: (51,31,157)

Color info

#331F9D contains mainly blue color. Web safe color of #331F9D is #333399 (or #339).

RGB color model

#331F9D color RGB value is (51,31,157).

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

RGB channels and saturation

R 51 of 255 = 20%
G 31 of 255 = 12%
B 157 of 255 = 62%

51
31
157

R + G + B ~ 31%. #331F9D is quite dark color.

Portions of RGB colors in percentages

R + G + B =
51 + 31 + 157 = 239 (100%)
R 51 of 239 ~ 21.34%
G 31 of 239 ~ 12.97%
B 157 of 239 ~ 65.69%

%21.34
%12.97
%65.69

CMYK color model

#331F9D color CMYK value is (68,80,0,38).

  • cyan value is 67.52%
  • magenta value is 80.25%
  • yellow value is 0.00%
  • key color value is 38.43%
CMYK:
(68,80,0,38)
C68M80Y0K38 
(68%,80%,0%,38%)
(0.68/0.80/0.00/0.38)	

CMYK percentages

%67.52
%80.25
%0
%38.43

Codes

Color #331F9D in popluar color models

331F9D
RGB5131157
HSL250°67.02%36.86%
HSB/HSV250°80.25%61.57%
CMYK67.52%80.25%0.00%
38.43%

Color #331F9D in popluar number systems.

HEX331F9D
Decimal5131157
Binary1100111111110011101
Octal6337235

Shades and tints

Shades of #331F9D

#331F9D
(51,31,157)
#2F1D8F
(47,29,143)
#2B1B81
(43,27,129)
#271973
(39,25,115)
#231765
(35,23,101)
#1F1557
(31,21,87)
#1B1349
(27,19,73)
#17113B
(23,17,59)
#130F2D
(19,15,45)
#0F0D1F
(15,13,31)
#0B0B11
(11,11,17)
#000000
(0,0,0)

Tints of #331F9D

#331F9D
(51,31,157)
#4533A5
(69,51,165)
#5747AD
(87,71,173)
#695BB5
(105,91,181)
#7B6FBD
(123,111,189)
#8D83C5
(141,131,197)
#9F97CD
(159,151,205)
#B1ABD5
(177,171,213)
#C3BFDD
(195,191,221)
#D5D3E5
(213,211,229)
#E7E7ED
(231,231,237)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #331F9D; }

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

This text font color is #331F9D.


Background Color

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

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

This div background color is #331F9D.


Border color

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

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

This div border color is #331F9D.


Opacity

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

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

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

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

This text has shadow with #331F9D color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #331F9D on black background.


Color preview on white background

This text has color #331F9D on white background.



Black color preview on #331F9D background

This text has black color on #331F9D background.


White color preview on #331F9D background

This text has white color on #331F9D background.