COLOR #40227C

HEX: #40227C RGB: (64,34,124)

Color info

#40227C contains mainly blue color. Web safe color of #40227C is #333366 (or #336).

RGB color model

#40227C color RGB value is (64,34,124).

RGB: (64,34,124) (25%, 13%, 49%)

RGB channels and saturation

R 64 of 255 = 25%
G 34 of 255 = 13%
B 124 of 255 = 49%

64
34
124

R + G + B ~ 29%. #40227C is quite dark color.

Portions of RGB colors in percentages

R + G + B = 64 + 34 + 124 = 222 (100%)
R 64 of 222 ~ 28.83%
G 34 of 222 ~ 15.32%
B 124 of 222 ~ 55.86'%

%28.83
%15.32
%55.86

CMYK color model

#40227C color CMYK value is (48,73,0,51).

  • cyan value is 48.39%
  • magenta value is 72.58%
  • yellow value is 0.00%
  • key color value is 51.37%

CMYK: (48,73,0,51)
C48M73Y0K51 (48%, 73%, 0%, 51%)
(0.48 / 0.73 / 0.00 / 0.51)

CMYK percentages

%48.39
%72.58
%0
%51.37

Codes

Color #40227C in popluar color models

40 22 7C
RGB 64 34 124
HSL 260° 56.96% 30.98%
HSB/HSV 260° 72.58% 48.63%
CMYK 48.39% 72.58% 0.00%
51.37%

Color #40227C in popluar number systems.

HEX 40 22 7C
Decimal 64 34 124
Binary 1000000 100010 1111100
Octal 100 42 174

Shades and tints

Shades of #40227C

#40227C
(64,34,124)
#3B1F71
(59,31,113)
#361C66
(54,28,102)
#31195B
(49,25,91)
#2C1650
(44,22,80)
#271345
(39,19,69)
#22103A
(34,16,58)
#1D0D2F
(29,13,47)
#180A24
(24,10,36)
#130719
(19,7,25)
#0E040E
(14,4,14)
#000000
(0,0,0)

Tints of #40227C

#40227C
(64,34,124)
#513687
(81,54,135)
#624A92
(98,74,146)
#735E9D
(115,94,157)
#8472A8
(132,114,168)
#9586B3
(149,134,179)
#A69ABE
(166,154,190)
#B7AEC9
(183,174,201)
#C8C2D4
(200,194,212)
#D9D6DF
(217,214,223)
#EAEAEA
(234,234,234)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #40227C color. Also use rgb(64,34,124) instead hex code.

Text Font Color

.myTextColor { color: #40227C; }

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

This text font color is #40227C.

Background Color

.myBgColor { background-color: #40227C; }

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

This div background color is #40227C.

Border color

.myBorderColor { border: 1px solid #40227C; }

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

This div border color is #40227C.

Opacity

.myOpacity80 { color: #40227C; opacity: 0.8; }

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

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

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

This text has shadow with #40227C color.


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

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

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


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

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

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

Div box shadow color

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

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

This div box has shadow with color #40227C.

Preview

Color preview on black background

This text has color #40227C on black background.


Color preview on white background

This text has color #40227C on white background.


Black color preview on #40227C background

This text has black color on #40227C background.


White color preview on #40227C background

This text has white color on #40227C background.


Related colors

Complementary color

Complementary color for #hex is #BFDD83.


I love getcolorcode.com

Triadic colors

1 #7C4022 and #227C40 with #40227C are triadic colors.

2 #7C2240 and #22407C with #40227C are triadic colors.