COLOR #221828

HEX: #221828
RGB: (34,24,40)

Color info

#221828 contains red, green and blue colors in about the same proportion. Web safe color of #221828 is #330033 (or #303).

RGB color model

#221828 color RGB value is (34,24,40).

  • red value is 34;
  • green value is 24;
  • blue value is 40.
RGB:
(34,24,40)
(13%,9%,16%)

RGB channels and saturation

R 34 of 255 = 13%
G 24 of 255 = 9%
B 40 of 255 = 16%

34
24
40

R + G + B ~ 13%. #221828 is dark color.

Portions of RGB colors in percentages

R + G + B =
34 + 24 + 40 = 98 (100%)
R 34 of 98 ~ 34.69%
G 24 of 98 ~ 24.49%
B 40 of 98 ~ 40.82%

%34.69
%24.49
%40.82

CMYK color model

#221828 color CMYK value is (15,40,0,84).

  • cyan value is 15.00%
  • magenta value is 40.00%
  • yellow value is 0.00%
  • key color value is 84.31%
CMYK:
(15,40,0,84)
C15M40Y0K84 
(15%,40%,0%,84%)
(0.15/0.40/0.00/0.84)	

CMYK percentages

%15
%40
%0
%84.31

Codes

Color #221828 in popluar color models

221828
RGB342440
HSL278°25.00%12.55%
HSB/HSV278°40.00%15.69%
CMYK15.00%40.00%0.00%
84.31%

Color #221828 in popluar number systems.

HEX221828
Decimal342440
Binary10001011000101000
Octal423050

Shades and tints

Shades of #221828

#221828
(34,24,40)
#1F1625
(31,22,37)
#1C1422
(28,20,34)
#19121F
(25,18,31)
#16101C
(22,16,28)
#130E19
(19,14,25)
#100C16
(16,12,22)
#0D0A13
(13,10,19)
#0A0810
(10,8,16)
#07060D
(7,6,13)
#04040A
(4,4,10)
#000000
(0,0,0)

Tints of #221828

#221828
(34,24,40)
#362D3B
(54,45,59)
#4A424E
(74,66,78)
#5E5761
(94,87,97)
#726C74
(114,108,116)
#868187
(134,129,135)
#9A969A
(154,150,154)
#AEABAD
(174,171,173)
#C2C0C0
(194,192,192)
#D6D5D3
(214,213,211)
#EAEAE6
(234,234,230)
#FFFFFF
(255,255,255)

CSS3 styles

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

Text Font Color

.myTextColor { color: #221828; }

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

This text font color is #221828.


Background Color

.myBgColor { background-color: #221828; }

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

This div background color is #221828.


Border color

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

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

This div border color is #221828.


Opacity

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

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

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

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

This text has shadow with #221828 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #221828 on black background.


Color preview on white background

This text has color #221828 on white background.



Black color preview on #221828 background

This text has black color on #221828 background.


White color preview on #221828 background

This text has white color on #221828 background.