Color: #402F8E

#402F8E Color Information

#402F8E is a dark color. The closest websafe version is #402F8E. A complement of this color would be #7C8E2F, perceived brightness is 0.25, and the grayscale version is #5F5F5F.

In the HSL color space, this color has a hue angle of 251°,a saturation of 50%, and a lightness of 37%.The HSV representation shows a hue of 251°, a saturation of 67%, and a value of 56%.

In a RGB color space, #402F8E is composed of 25% red, 18% green and 56% blue. Whereas in a CMYK color space, it is composed of 55% cyan, 67% magenta, 0% yellow and 44% black.

In the Yxy color space, this color is represented as Y: 4.82, x: 0.2272, and y: 0.1521.

Color Code #402F8E

#402F8Ergb(64, 47, 142)
HEX
#402F8E
RGB
rgb(64, 47, 142)
HSL
hsl(251, 50%, 37%)
HSV
hsv(251, 67%, 56%)
CMYK
55%, 67%, 0%, 44%
XYZ
X: 7.20, Y: 4.82, Z: 19.67
Lab
L: 26.21, a: 28.61, b: -51.22
Name

Shades of Color #402F8E

Shades are created by darkening the original color #402F8E 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 #402F8E

Tints are created by lightening the original color #402F8E 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.

#402F8Ergb(64, 47, 142)

About #402F8E Color Code

In the HSL color space, this color has a hue angle of 251°, a saturation of 50%, and a lightness of 37%. The HSV representation shows a hue of 251°, a saturation of 67%, and a value of 56%.

  • HEX: #402F8E
  • RGB: rgb(64, 47, 142)
  • HSL: hsl(251, 50%, 37%)
  • HSV: hsv(251, 67%, 56%)
  • CMYK: 55.00% cyan, 67.00% magenta, 0.00% yellow, 44.00% black
  • XYZ: 7.20, 4.82, 19.67
  • Yxy: 4.82, 0.2272, 0.1521
  • Hunter Lab: 26.21, 28.61, -51.22
  • CIE-Lab: 26.21, 28.61, -51.22

In the XYZ color space, this color is represented as X: 7.20, Y: 4.82, Z: 19.67. The Yxy representation further refines this as Y: 4.82, x: 0.2272, and y: 0.1521.

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

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 #402F8E

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

Analogous Colors of #402F8E

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

Split Complementary Colors of #402F8E

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

Tetradic Colors of #402F8E

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

Monochromatic Colors of #402F8E

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

Complementary Color of #402F8E

The complementary color of #402F8E 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 #402F8E

/* Using HEX */
body {
  background-color: #402f8e;
}
/* Using RGB */
body {
  background-color: rgb(64, 47, 142);
}
/* Using RGB with opacity */
body {
  background-color: rgba(64, 47, 142, 0.5);
}
/* Using HSL */
body {
  background-color: hsl(251, 50%, 37%);
}
/* Text color */
p {
  color: #402f8e;
}
Text Preview
/* Box shadow */
div {
  box-shadow: 4px 4px #402f8e;
}
/* Border color */
.box {
  border: 4px solid #402f8e;
}
/* Text shadow */
h1 {
  color: #222;
  text-shadow: 2px 2px 0 #402f8e;
}
Text Shadow Preview
/* Background with text */
div {
  background: #402f8e;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
}
#402F8E
On Black Background
#402F8E
On White Background
#402F8E

HTML Examples of #402F8E

<!-- Using HEX -->
<div style="background-color: #402f8e; width: 100px; height: 100px;"></div>
<!-- Using RGB -->
<div style="background-color: rgb(64, 47, 142); width: 100px; height: 100px;"></div>
<!-- Using RGB with opacity -->
<div style="background-color: rgba(64, 47, 142, 0.5); width: 100px; height: 100px;"></div>
<!-- Using HSL -->
<div style="background-color: hsl(251, 50%, 37%); width: 100px; height: 100px;"></div>
<!-- Text color -->
<p style="color: #402f8e;">This is a text example.</p>
Text Preview
<!-- Box shadow -->
<div style="box-shadow: 4px 4px #402f8e; width: 100px; height: 100px;"></div>
<!-- Border color -->
<div style="border: 4px solid #402f8e; width: 100px; height: 100px;"></div>
<!-- Text shadow -->
<h1 style="color: #222; text-shadow: 2px 2px 0 #402f8e;">Text Shadow Preview</h1>
Text Shadow Preview
<!-- Background with text -->
<div style="background: #402f8e; color: #fff; padding: 16px; border-radius: 8px;">
  #402F8E
</div>
#402F8E
On Black Background
#402F8E
On White Background
#402F8E

Related Colors of #402F8E

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