COLOR #120242

HEX: #120242
RGB: (18,2,66)

Color info

#120242 contains mainly red and blue colors. Web safe color of #120242 is #000033 (or #003).

RGB color model

#120242 color RGB value is (18,2,66).

  • red value is 18;
  • green value is 2;
  • blue value is 66.
RGB:
(18,2,66)
(7%,1%,26%)

RGB channels and saturation

R 18 of 255 = 7%
G 2 of 255 = 1%
B 66 of 255 = 26%

18
2
66

R + G + B ~ 11%. #120242 is dark color.

Portions of RGB colors in percentages

R + G + B =
18 + 2 + 66 = 86 (100%)
R 18 of 86 ~ 20.93%
G 2 of 86 ~ 2.33%
B 66 of 86 ~ 76.74%

%20.93
%76.74

CMYK color model

#120242 color CMYK value is (73,97,0,74).

  • cyan value is 72.73%
  • magenta value is 96.97%
  • yellow value is 0.00%
  • key color value is 74.12%
CMYK:
(73,97,0,74)
C73M97Y0K74 
(73%,97%,0%,74%)
(0.73/0.97/0.00/0.74)	

CMYK percentages

%72.73
%96.97
%0
%74.12

Codes

Color #120242 in popluar color models

120242
RGB18266
HSL255°94.12%13.33%
HSB/HSV255°96.97%25.88%
CMYK72.73%96.97%0.00%
74.12%

Color #120242 in popluar number systems.

HEX120242
Decimal18266
Binary10010101000010
Octal222102

Shades and tints

Shades of #120242

#120242
(18,2,66)
#11023C
(17,2,60)
#100236
(16,2,54)
#0F0230
(15,2,48)
#0E022A
(14,2,42)
#0D0224
(13,2,36)
#0C021E
(12,2,30)
#0B0218
(11,2,24)
#0A0212
(10,2,18)
#09020C
(9,2,12)
#080206
(8,2,6)
#000000
(0,0,0)

Tints of #120242

#120242
(18,2,66)
#271953
(39,25,83)
#3C3064
(60,48,100)
#514775
(81,71,117)
#665E86
(102,94,134)
#7B7597
(123,117,151)
#908CA8
(144,140,168)
#A5A3B9
(165,163,185)
#BABACA
(186,186,202)
#CFD1DB
(207,209,219)
#E4E8EC
(228,232,236)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #120242 color. Also use rgb(18,2,66) instead hex code.

Text Font Color

.myTextColor { color: #120242; }

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

This text font color is #120242.


Background Color

.myBgColor { background-color: #120242; }

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

This div background color is #120242.


Border color

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

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

This div border color is #120242.


Opacity

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

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

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

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

This text has shadow with #120242 color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #120242 on black background.


Color preview on white background

This text has color #120242 on white background.



Black color preview on #120242 background

This text has black color on #120242 background.


White color preview on #120242 background

This text has white color on #120242 background.