COLOR #40398A

HEX: #40398A
RGB: (64,57,138)

Color info

#40398A contains mainly blue color. Web safe color of #40398A is #333399 (or #339).

RGB color model

#40398A color RGB value is (64,57,138).

  • red value is 64;
  • green value is 57;
  • blue value is 138.
RGB:
(64,57,138)
(25%,22%,54%)

RGB channels and saturation

R 64 of 255 = 25%
G 57 of 255 = 22%
B 138 of 255 = 54%

64
57
138

R + G + B ~ 34%. #40398A is quite dark color.

Portions of RGB colors in percentages

R + G + B =
64 + 57 + 138 = 259 (100%)
R 64 of 259 ~ 24.71%
G 57 of 259 ~ 22.01%
B 138 of 259 ~ 53.28%

%24.71
%22.01
%53.28

CMYK color model

#40398A color CMYK value is (54,59,0,46).

  • cyan value is 53.62%
  • magenta value is 58.70%
  • yellow value is 0.00%
  • key color value is 45.88%
CMYK:
(54,59,0,46)
C54M59Y0K46 
(54%,59%,0%,46%)
(0.54/0.59/0.00/0.46)	

CMYK percentages

%53.62
%58.7
%0
%45.88

Codes

Color #40398A in popluar color models

40398A
RGB6457138
HSL245°41.54%38.24%
HSB/HSV245°58.70%54.12%
CMYK53.62%58.70%0.00%
45.88%

Color #40398A in popluar number systems.

HEX40398A
Decimal6457138
Binary100000011100110001010
Octal10071212

Shades and tints

Shades of #40398A

#40398A
(64,57,138)
#3B347E
(59,52,126)
#362F72
(54,47,114)
#312A66
(49,42,102)
#2C255A
(44,37,90)
#27204E
(39,32,78)
#221B42
(34,27,66)
#1D1636
(29,22,54)
#18112A
(24,17,42)
#130C1E
(19,12,30)
#0E0712
(14,7,18)
#000000
(0,0,0)

Tints of #40398A

#40398A
(64,57,138)
#514B94
(81,75,148)
#625D9E
(98,93,158)
#736FA8
(115,111,168)
#8481B2
(132,129,178)
#9593BC
(149,147,188)
#A6A5C6
(166,165,198)
#B7B7D0
(183,183,208)
#C8C9DA
(200,201,218)
#D9DBE4
(217,219,228)
#EAEDEE
(234,237,238)
#FFFFFF
(255,255,255)

CSS3 styles

Examples of css and html codes for elements with #40398A color. Also use rgb(64,57,138) instead hex code.

Text Font Color

.myTextColor { color: #40398A; }

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

This text font color is #40398A.


Background Color

.myBgColor { background-color: #40398A; }

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

This div background color is #40398A.


Border color

.myBorderColor { border: 1px solid #40398A; }

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

This div border color is #40398A.


Opacity

.myOpacity80 { color: #40398A; opacity: 0.8; }

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

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

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

This text has shadow with #40398A color.

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

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

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


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

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

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


Div box shadow color

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

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

Preview

Color preview on black background

This text has color #40398A on black background.


Color preview on white background

This text has color #40398A on white background.



Black color preview on #40398A background

This text has black color on #40398A background.


White color preview on #40398A background

This text has white color on #40398A background.