COLOR #040B8C

HEX: #040B8C RGB: (4,11,140)

Color info

#040B8C contains mainly blue color. Web safe color of #040B8C is #000099 (or #009).

RGB color model

#040B8C color RGB value is (4,11,140).

RGB: (4,11,140) (2%, 4%, 55%)

RGB channels and saturation

R 4 of 255 = 2%
G 11 of 255 = 4%
B 140 of 255 = 55%

4
11
140

R + G + B ~ 20%. #040B8C is dark color.

Portions of RGB colors in percentages

R + G + B = 4 + 11 + 140 = 155 (100%)
R 4 of 155 ~ 2.58%
G 11 of 155 ~ 7.1%
B 140 of 155 ~ 90.32'%

%90.32

CMYK color model

#040B8C color CMYK value is (97,92,0,45).

  • cyan value is 97.14%
  • magenta value is 92.14%
  • yellow value is 0.00%
  • key color value is 45.10%

CMYK: (97,92,0,45)
C97M92Y0K45 (97%, 92%, 0%, 45%)
(0.97 / 0.92 / 0.00 / 0.45)

CMYK percentages

%97.14
%92.14
%0
%45.1

Codes

Color #040B8C in popluar color models

04 0B 8C
RGB 4 11 140
HSL 237° 94.44% 28.24%
HSB/HSV 237° 97.14% 54.90%
CMYK 97.14% 92.14% 0.00%
45.10%

Color #040B8C in popluar number systems.

HEX 04 0B 8C
Decimal 4 11 140
Binary 100 1011 10001100
Octal 4 13 214

Shades and tints

Shades of #040B8C

#040B8C
(4,11,140)
#040A80
(4,10,128)
#040974
(4,9,116)
#040868
(4,8,104)
#04075C
(4,7,92)
#040650
(4,6,80)
#040544
(4,5,68)
#040438
(4,4,56)
#04032C
(4,3,44)
#040220
(4,2,32)
#040114
(4,1,20)
#000000
(0,0,0)

Tints of #040B8C

#040B8C
(4,11,140)
#1A2196
(26,33,150)
#3037A0
(48,55,160)
#464DAA
(70,77,170)
#5C63B4
(92,99,180)
#7279BE
(114,121,190)
#888FC8
(136,143,200)
#9EA5D2
(158,165,210)
#B4BBDC
(180,187,220)
#CAD1E6
(202,209,230)
#E0E7F0
(224,231,240)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #040B8C color. Also use rgb(4,11,140) instead hex code.

Text Font Color

.myTextColor { color: #040B8C; }

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

This text font color is #040B8C.

Background Color

.myBgColor { background-color: #040B8C; }

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

This div background color is #040B8C.

Border color

.myBorderColor { border: 1px solid #040B8C; }

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

This div border color is #040B8C.

Opacity

.myOpacity80 { color: #040B8C; opacity: 0.8; }

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

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

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

This text has shadow with #040B8C color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #040B8C.

Preview

Color preview on black background

This text has color #040B8C on black background.


Color preview on white background

This text has color #040B8C on white background.


Black color preview on #040B8C background

This text has black color on #040B8C background.


White color preview on #040B8C background

This text has white color on #040B8C background.


Related colors

Complementary color

Complementary color for #hex is #FBF473.


I love getcolorcode.com

Triadic colors

1 #8C040B and #0B8C04 with #040B8C are triadic colors.

2 #8C0B04 and #0B048C with #040B8C are triadic colors.