COLOR #331B42

HEX: #331B42 RGB: (51,27,66)

Color info

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

RGB color model

#331B42 color RGB value is (51,27,66).

RGB: (51,27,66) (20%, 11%, 26%)

RGB channels and saturation

R 51 of 255 = 20%
G 27 of 255 = 11%
B 66 of 255 = 26%

51
27
66

R + G + B ~ 19%. #331B42 is dark color.

Portions of RGB colors in percentages

R + G + B = 51 + 27 + 66 = 144 (100%)
R 51 of 144 ~ 35.42%
G 27 of 144 ~ 18.75%
B 66 of 144 ~ 45.83'%

%35.42
%18.75
%45.83

CMYK color model

#331B42 color CMYK value is (23,59,0,74).

  • cyan value is 22.73%
  • magenta value is 59.09%
  • yellow value is 0.00%
  • key color value is 74.12%

CMYK: (23,59,0,74)
C23M59Y0K74 (23%, 59%, 0%, 74%)
(0.23 / 0.59 / 0.00 / 0.74)

CMYK percentages

%22.73
%59.09
%0
%74.12

Codes

Color #331B42 in popluar color models

33 1B 42
RGB 51 27 66
HSL 277° 41.94% 18.24%
HSB/HSV 277° 59.09% 25.88%
CMYK 22.73% 59.09% 0.00%
74.12%

Color #331B42 in popluar number systems.

HEX 33 1B 42
Decimal 51 27 66
Binary 110011 11011 1000010
Octal 63 33 102

Shades and tints

Shades of #331B42

#331B42
(51,27,66)
#2F193C
(47,25,60)
#2B1736
(43,23,54)
#271530
(39,21,48)
#23132A
(35,19,42)
#1F1124
(31,17,36)
#1B0F1E
(27,15,30)
#170D18
(23,13,24)
#130B12
(19,11,18)
#0F090C
(15,9,12)
#0B0706
(11,7,6)
#000000
(0,0,0)

Tints of #331B42

#331B42
(51,27,66)
#452F53
(69,47,83)
#574364
(87,67,100)
#695775
(105,87,117)
#7B6B86
(123,107,134)
#8D7F97
(141,127,151)
#9F93A8
(159,147,168)
#B1A7B9
(177,167,185)
#C3BBCA
(195,187,202)
#D5CFDB
(213,207,219)
#E7E3EC
(231,227,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #331B42 color. Also use rgb(51,27,66) instead hex code.

Text Font Color

.myTextColor { color: #331B42; }

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

This text font color is #331B42.

Background Color

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

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

This div background color is #331B42.

Border color

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

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

This div border color is #331B42.

Opacity

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

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

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

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

This text has shadow with #331B42 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #331B42.

Preview

Color preview on black background

This text has color #331B42 on black background.


Color preview on white background

This text has color #331B42 on white background.


Black color preview on #331B42 background

This text has black color on #331B42 background.


White color preview on #331B42 background

This text has white color on #331B42 background.


Related colors

Complementary color

Complementary color for #hex is #CCE4BD.


I love getcolorcode.com

Triadic colors

1 #42331B and #1B4233 with #331B42 are triadic colors.

2 #421B33 and #1B3342 with #331B42 are triadic colors.