Color: #40398D

#40398D Color Information

#40398D is a dark color. The closest websafe version is #40398D. A complement of this color would be #868D3A, perceived brightness is 0.27, and the grayscale version is #636363.

In the HSL color space, this color has a hue angle of 245°,a saturation of 42%, and a lightness of 39%.The HSV representation shows a hue of 245°, a saturation of 60%, and a value of 55%.

In a RGB color space, #40398D is composed of 25% red, 22% green and 55% blue. Whereas in a CMYK color space, it is composed of 55% cyan, 60% magenta, 0% yellow and 45% black.

In the Yxy color space, this color is represented as Y: 5.69, x: 0.2323, and y: 0.1735.

Color Code #40398D

#40398Drgb(64, 57, 141)
HEX
#40398D
RGB
rgb(64, 57, 141)
HSL
hsl(245, 42%, 39%)
HSV
hsv(245, 60%, 55%)
CMYK
55%, 60%, 0%, 45%
XYZ
X: 7.62, Y: 5.69, Z: 19.49
Lab
L: 28.61, a: 22.29, b: -46.71
Name

Shades of Color #40398D

Shades are created by darkening the original color #40398D in equal steps from 0% to 90%. These shades are perfect for creating depth and contrast in your designs. Use them to add visual hierarchy or highlight specific elements in your projects.

Tints of Color #40398D

Tints are created by lightening the original color #40398D in equal steps from 0% to 90%, ending with pure white. These tints are ideal for creating soft backgrounds, subtle highlights, or cohesive UI elements that complement your designs.

#40398Drgb(64, 57, 141)

About #40398D Color Code

In the HSL color space, this color has a hue angle of 245°, a saturation of 42%, and a lightness of 39%. The HSV representation shows a hue of 245°, a saturation of 60%, and a value of 55%.

  • HEX: #40398D
  • RGB: rgb(64, 57, 141)
  • HSL: hsl(245, 42%, 39%)
  • HSV: hsv(245, 60%, 55%)
  • CMYK: 55.00% cyan, 60.00% magenta, 0.00% yellow, 45.00% black
  • XYZ: 7.62, 5.69, 19.49
  • Yxy: 5.69, 0.2323, 0.1735
  • Hunter Lab: 28.61, 22.29, -46.71
  • CIE-Lab: 28.61, 22.29, -46.71

In the XYZ color space, this color is represented as X: 7.62, Y: 5.69, Z: 19.49. The Yxy representation further refines this as Y: 5.69, x: 0.2323, and y: 0.1735.

In the Hunter Lab color space, this color is represented as L: 28.61, a: 22.29, and b: -46.71. Similarly, in the CIE-Lab color space, it is represented as L: 28.61, a: 22.29, and b: -46.71.

Use these color codes in your CSS, design tools, or anywhere you need to specify a color. You can also explore its shades and tints for more creative options.

Triadic Colors of #40398D

Triadic colors are three colors evenly spaced around the color wheel, including #40398D. They create vibrant and balanced color schemes, perfect for designs that need contrast and harmony.

Analogous Colors of #40398D

Analogous colors are adjacent to #40398D on the color wheel. They create harmonious and visually pleasing designs, ideal for projects that need a cohesive look.

Split Complementary Colors of #40398D

Split complementary colors are two colors adjacent to the complementary color of #40398D. They create a balanced and visually appealing color scheme.

Tetradic Colors of #40398D

Tetradic colors form a rectangle on the color wheel, including #40398D. They provide vibrant and diverse color schemes for creative designs.

Monochromatic Colors of #40398D

Monochromatic colors are variations of #40398D, including its shades, tints, and tones. They create elegant and minimalistic designs with a unified color theme.

Complementary Color of #40398D

The complementary color of #40398D is opposite it on the color wheel. Complementary colors provide strong contrast and are ideal for designs that need visual impact and attention.

CSS Examples of #40398D

/* Using HEX */
body {
  background-color: #40398d;
}
/* Using RGB */
body {
  background-color: rgb(64, 57, 141);
}
/* Using RGB with opacity */
body {
  background-color: rgba(64, 57, 141, 0.5);
}
/* Using HSL */
body {
  background-color: hsl(245, 42%, 39%);
}
/* Text color */
p {
  color: #40398d;
}
Text Preview
/* Box shadow */
div {
  box-shadow: 4px 4px #40398d;
}
/* Border color */
.box {
  border: 4px solid #40398d;
}
/* Text shadow */
h1 {
  color: #222;
  text-shadow: 2px 2px 0 #40398d;
}
Text Shadow Preview
/* Background with text */
div {
  background: #40398d;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
}
#40398D
On Black Background
#40398D
On White Background
#40398D

HTML Examples of #40398D

<!-- Using HEX -->
<div style="background-color: #40398d; width: 100px; height: 100px;"></div>
<!-- Using RGB -->
<div style="background-color: rgb(64, 57, 141); width: 100px; height: 100px;"></div>
<!-- Using RGB with opacity -->
<div style="background-color: rgba(64, 57, 141, 0.5); width: 100px; height: 100px;"></div>
<!-- Using HSL -->
<div style="background-color: hsl(245, 42%, 39%); width: 100px; height: 100px;"></div>
<!-- Text color -->
<p style="color: #40398d;">This is a text example.</p>
Text Preview
<!-- Box shadow -->
<div style="box-shadow: 4px 4px #40398d; width: 100px; height: 100px;"></div>
<!-- Border color -->
<div style="border: 4px solid #40398d; width: 100px; height: 100px;"></div>
<!-- Text shadow -->
<h1 style="color: #222; text-shadow: 2px 2px 0 #40398d;">Text Shadow Preview</h1>
Text Shadow Preview
<!-- Background with text -->
<div style="background: #40398d; color: #fff; padding: 16px; border-radius: 8px;">
  #40398D
</div>
#40398D
On Black Background
#40398D
On White Background
#40398D

Related Colors of #40398D

These colors are similar to #40398D, with slight variations in hue. Use them to create harmonious designs or explore alternative shades for your projects.