COLOR #312828

HEX: #312828 RGB: (49,40,40)

Color info

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

RGB color model

#312828 color RGB value is (49,40,40).

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

RGB channels and saturation

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

49
40
40

R + G + B ~ 17%. #312828 is dark color.

Portions of RGB colors in percentages

R + G + B = 49 + 40 + 40 = 129 (100%)
R 49 of 129 ~ 37.98%
G 40 of 129 ~ 31.01%
B 40 of 129 ~ 31.01'%

%37.98
%31.01
%31.01

CMYK color model

#312828 color CMYK value is (0,18,18,81).

  • cyan value is 0.00%
  • magenta value is 18.37%
  • yellow value is 18.37%
  • key color value is 80.78%

CMYK: (0,18,18,81)
C0M18Y18K81 (0%, 18%, 18%, 81%)
(0.00 / 0.18 / 0.18 / 0.81)

CMYK percentages

%0
%18.37
%18.37
%80.78

Codes

Color #312828 in popluar color models

31 28 28
RGB 49 40 40
HSL 10.11% 17.45%
HSB/HSV 18.37% 19.22%
CMYK 0.00% 18.37% 18.37%
80.78%

Color #312828 in popluar number systems.

HEX 31 28 28
Decimal 49 40 40
Binary 110001 101000 101000
Octal 61 50 50

Shades and tints

Shades of #312828

#312828
(49,40,40)
#2D2525
(45,37,37)
#292222
(41,34,34)
#251F1F
(37,31,31)
#211C1C
(33,28,28)
#1D1919
(29,25,25)
#191616
(25,22,22)
#151313
(21,19,19)
#111010
(17,16,16)
#0D0D0D
(13,13,13)
#090A0A
(9,10,10)
#000000
(0,0,0)

Tints of #312828

#312828
(49,40,40)
#433B3B
(67,59,59)
#554E4E
(85,78,78)
#676161
(103,97,97)
#797474
(121,116,116)
#8B8787
(139,135,135)
#9D9A9A
(157,154,154)
#AFADAD
(175,173,173)
#C1C0C0
(193,192,192)
#D3D3D3
(211,211,211)
#E5E6E6
(229,230,230)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #312828; }

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

This text font color is #312828.

Background Color

.myBgColor { background-color: #312828; }

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

This div background color is #312828.

Border color

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

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

This div border color is #312828.

Opacity

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

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

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

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

This text has shadow with #312828 color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #312828.

Preview

Color preview on black background

This text has color #312828 on black background.


Color preview on white background

This text has color #312828 on white background.


Black color preview on #312828 background

This text has black color on #312828 background.


White color preview on #312828 background

This text has white color on #312828 background.


Related colors

Complementary color

Complementary color for #hex is #CED7D7.


I love getcolorcode.com