COLOR #312838

HEX: #312838 RGB: (49,40,56)

Color info

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

RGB color model

#312838 color RGB value is (49,40,56).

RGB: (49,40,56) (19%, 16%, 22%)

RGB channels and saturation

R 49 of 255 = 19%
G 40 of 255 = 16%
B 56 of 255 = 22%

49
40
56

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

Portions of RGB colors in percentages

R + G + B = 49 + 40 + 56 = 145 (100%)
R 49 of 145 ~ 33.79%
G 40 of 145 ~ 27.59%
B 56 of 145 ~ 38.62'%

%33.79
%27.59
%38.62

CMYK color model

#312838 color CMYK value is (13,29,0,78).

  • cyan value is 12.50%
  • magenta value is 28.57%
  • yellow value is 0.00%
  • key color value is 78.04%

CMYK: (13,29,0,78)
C13M29Y0K78 (13%, 29%, 0%, 78%)
(0.13 / 0.29 / 0.00 / 0.78)

CMYK percentages

%12.5
%28.57
%0
%78.04

Codes

Color #312838 in popluar color models

31 28 38
RGB 49 40 56
HSL 274° 16.67% 18.82%
HSB/HSV 274° 28.57% 21.96%
CMYK 12.50% 28.57% 0.00%
78.04%

Color #312838 in popluar number systems.

HEX 31 28 38
Decimal 49 40 56
Binary 110001 101000 111000
Octal 61 50 70

Shades and tints

Shades of #312838

#312838
(49,40,56)
#2D2533
(45,37,51)
#29222E
(41,34,46)
#251F29
(37,31,41)
#211C24
(33,28,36)
#1D191F
(29,25,31)
#19161A
(25,22,26)
#151315
(21,19,21)
#111010
(17,16,16)
#0D0D0B
(13,13,11)
#090A06
(9,10,6)
#000000
(0,0,0)

Tints of #312838

#312838
(49,40,56)
#433B4A
(67,59,74)
#554E5C
(85,78,92)
#67616E
(103,97,110)
#797480
(121,116,128)
#8B8792
(139,135,146)
#9D9AA4
(157,154,164)
#AFADB6
(175,173,182)
#C1C0C8
(193,192,200)
#D3D3DA
(211,211,218)
#E5E6EC
(229,230,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #312838 color. Also use rgb(49,40,56) instead hex code.

Text Font Color

.myTextColor { color: #312838; }

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

This text font color is #312838.

Background Color

.myBgColor { background-color: #312838; }

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

This div background color is #312838.

Border color

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

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

This div border color is #312838.

Opacity

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

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

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

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

This text has shadow with #312838 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #312838.

Preview

Color preview on black background

This text has color #312838 on black background.


Color preview on white background

This text has color #312838 on white background.


Black color preview on #312838 background

This text has black color on #312838 background.


White color preview on #312838 background

This text has white color on #312838 background.


Related colors

Complementary color

Complementary color for #hex is #CED7C7.


I love getcolorcode.com

Triadic colors

1 #383128 and #283831 with #312838 are triadic colors.

2 #382831 and #283138 with #312838 are triadic colors.