COLOR #304040

HEX: #304040
RGB: (48,64,64)

Color info

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

RGB color model

#304040 color RGB value is (48,64,64).

  • red value is 48;
  • green value is 64;
  • blue value is 64.
RGB:
(48,64,64)
(19%,25%,25%)

RGB channels and saturation

R 48 of 255 = 19%
G 64 of 255 = 25%
B 64 of 255 = 25%

48
64
64

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

Portions of RGB colors in percentages

R + G + B =
48 + 64 + 64 = 176 (100%)
R 48 of 176 ~ 27.27%
G 64 of 176 ~ 36.36%
B 64 of 176 ~ 36.36%

%27.27
%36.36
%36.36

CMYK color model

#304040 color CMYK value is (25,0,0,75).

  • cyan value is 25.00%
  • magenta value is 0.00%
  • yellow value is 0.00%
  • key color value is 74.90%
CMYK:
(25,0,0,75)
C25M0Y0K75 
(25%,0%,0%,75%)
(0.25/0.00/0.00/0.75)	

CMYK percentages

%25
%0
%0
%74.9

Codes

Color #304040 in popluar color models

304040
RGB486464
HSL180°14.29%21.96%
HSB/HSV180°25.00%25.10%
CMYK25.00%0.00%0.00%
74.90%

Color #304040 in popluar number systems.

HEX304040
Decimal486464
Binary11000010000001000000
Octal60100100

Shades and tints

Shades of #304040

#304040
(48,64,64)
#2C3B3B
(44,59,59)
#283636
(40,54,54)
#243131
(36,49,49)
#202C2C
(32,44,44)
#1C2727
(28,39,39)
#182222
(24,34,34)
#141D1D
(20,29,29)
#101818
(16,24,24)
#0C1313
(12,19,19)
#080E0E
(8,14,14)
#000000
(0,0,0)

Tints of #304040

#304040
(48,64,64)
#425151
(66,81,81)
#546262
(84,98,98)
#667373
(102,115,115)
#788484
(120,132,132)
#8A9595
(138,149,149)
#9CA6A6
(156,166,166)
#AEB7B7
(174,183,183)
#C0C8C8
(192,200,200)
#D2D9D9
(210,217,217)
#E4EAEA
(228,234,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #304040 color. Also use rgb(48,64,64) instead hex code.

Text Font Color

.myTextColor { color: #304040; }

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

This text font color is #304040.


Background Color

.myBgColor { background-color: #304040; }

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

This div background color is #304040.


Border color

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

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

This div border color is #304040.


Opacity

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

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

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

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

This text has shadow with #304040 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #304040 on black background.


Color preview on white background

This text has color #304040 on white background.



Black color preview on #304040 background

This text has black color on #304040 background.


White color preview on #304040 background

This text has white color on #304040 background.