COLOR #340848

HEX: #340848
RGB: (52,8,72)

Color info

#340848 contains mainly red and blue colors. Web safe color of #340848 is #330033 (or #303).

RGB color model

#340848 color RGB value is (52,8,72).

  • red value is 52;
  • green value is 8;
  • blue value is 72.
RGB:
(52,8,72)
(20%,3%,28%)

RGB channels and saturation

R 52 of 255 = 20%
G 8 of 255 = 3%
B 72 of 255 = 28%

52
8
72

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

Portions of RGB colors in percentages

R + G + B =
52 + 8 + 72 = 132 (100%)
R 52 of 132 ~ 39.39%
G 8 of 132 ~ 6.06%
B 72 of 132 ~ 54.55%

%39.39
%54.55

CMYK color model

#340848 color CMYK value is (28,89,0,72).

  • cyan value is 27.78%
  • magenta value is 88.89%
  • yellow value is 0.00%
  • key color value is 71.76%
CMYK:
(28,89,0,72)
C28M89Y0K72 
(28%,89%,0%,72%)
(0.28/0.89/0.00/0.72)	

CMYK percentages

%27.78
%88.89
%0
%71.76

Codes

Color #340848 in popluar color models

340848
RGB52872
HSL281°80.00%15.69%
HSB/HSV281°88.89%28.24%
CMYK27.78%88.89%0.00%
71.76%

Color #340848 in popluar number systems.

HEX340848
Decimal52872
Binary11010010001001000
Octal6410110

Shades and tints

Shades of #340848

#340848
(52,8,72)
#300842
(48,8,66)
#2C083C
(44,8,60)
#280836
(40,8,54)
#240830
(36,8,48)
#20082A
(32,8,42)
#1C0824
(28,8,36)
#18081E
(24,8,30)
#140818
(20,8,24)
#100812
(16,8,18)
#0C080C
(12,8,12)
#000000
(0,0,0)

Tints of #340848

#340848
(52,8,72)
#461E58
(70,30,88)
#583468
(88,52,104)
#6A4A78
(106,74,120)
#7C6088
(124,96,136)
#8E7698
(142,118,152)
#A08CA8
(160,140,168)
#B2A2B8
(178,162,184)
#C4B8C8
(196,184,200)
#D6CED8
(214,206,216)
#E8E4E8
(232,228,232)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #340848 color. Also use rgb(52,8,72) instead hex code.

Text Font Color

.myTextColor { color: #340848; }

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

This text font color is #340848.


Background Color

.myBgColor { background-color: #340848; }

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

This div background color is #340848.


Border color

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

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

This div border color is #340848.


Opacity

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

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

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

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

This text has shadow with #340848 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #340848 on black background.


Color preview on white background

This text has color #340848 on white background.



Black color preview on #340848 background

This text has black color on #340848 background.


White color preview on #340848 background

This text has white color on #340848 background.