Color: #40304C

#40304C Color Information

#40304C is a dark color. The closest websafe version is #40304C. A complement of this color would be #3B4B2F, perceived brightness is 0.22, and the grayscale version is #3E3E3E.

In the HSL color space, this color has a hue angle of 274°,a saturation of 23%, and a lightness of 24%.The HSV representation shows a hue of 274°, a saturation of 37%, and a value of 30%.

In a RGB color space, #40304C is composed of 25% red, 19% green and 30% blue. Whereas in a CMYK color space, it is composed of 16% cyan, 37% magenta, 0% yellow and 70% black.

In the Yxy color space, this color is represented as Y: 3.70, x: 0.3236, and y: 0.2715.

Color Code #40304C

#40304Crgb(64, 48, 76)
HEX
#40304C
RGB
rgb(64, 48, 76)
HSL
hsl(274, 23%, 24%)
HSV
hsv(274, 37%, 30%)
CMYK
16%, 37%, 0%, 70%
XYZ
X: 4.41, Y: 3.70, Z: 5.52
Lab
L: 22.65, a: 12.20, b: -14.56
Name

Shades of Color #40304C

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

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

#40304Crgb(64, 48, 76)

About #40304C Color Code

In the HSL color space, this color has a hue angle of 274°, a saturation of 23%, and a lightness of 24%. The HSV representation shows a hue of 274°, a saturation of 37%, and a value of 30%.

  • HEX: #40304C
  • RGB: rgb(64, 48, 76)
  • HSL: hsl(274, 23%, 24%)
  • HSV: hsv(274, 37%, 30%)
  • CMYK: 16.00% cyan, 37.00% magenta, 0.00% yellow, 70.00% black
  • XYZ: 4.41, 3.70, 5.52
  • Yxy: 3.70, 0.3236, 0.2715
  • Hunter Lab: 22.65, 12.20, -14.56
  • CIE-Lab: 22.65, 12.20, -14.56

In the XYZ color space, this color is represented as X: 4.41, Y: 3.70, Z: 5.52. The Yxy representation further refines this as Y: 3.70, x: 0.3236, and y: 0.2715.

In the Hunter Lab color space, this color is represented as L: 22.65, a: 12.20, and b: -14.56. Similarly, in the CIE-Lab color space, it is represented as L: 22.65, a: 12.20, and b: -14.56.

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 #40304C

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

Analogous Colors of #40304C

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

Split Complementary Colors of #40304C

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

Tetradic Colors of #40304C

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

Monochromatic Colors of #40304C

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

Complementary Color of #40304C

The complementary color of #40304C 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 #40304C

/* Using HEX */
body {
  background-color: #40304c;
}
/* Using RGB */
body {
  background-color: rgb(64, 48, 76);
}
/* Using RGB with opacity */
body {
  background-color: rgba(64, 48, 76, 0.5);
}
/* Using HSL */
body {
  background-color: hsl(274, 23%, 24%);
}
/* Text color */
p {
  color: #40304c;
}
Text Preview
/* Box shadow */
div {
  box-shadow: 4px 4px #40304c;
}
/* Border color */
.box {
  border: 4px solid #40304c;
}
/* Text shadow */
h1 {
  color: #222;
  text-shadow: 2px 2px 0 #40304c;
}
Text Shadow Preview
/* Background with text */
div {
  background: #40304c;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
}
#40304C
On Black Background
#40304C
On White Background
#40304C

HTML Examples of #40304C

<!-- Using HEX -->
<div style="background-color: #40304c; width: 100px; height: 100px;"></div>
<!-- Using RGB -->
<div style="background-color: rgb(64, 48, 76); width: 100px; height: 100px;"></div>
<!-- Using RGB with opacity -->
<div style="background-color: rgba(64, 48, 76, 0.5); width: 100px; height: 100px;"></div>
<!-- Using HSL -->
<div style="background-color: hsl(274, 23%, 24%); width: 100px; height: 100px;"></div>
<!-- Text color -->
<p style="color: #40304c;">This is a text example.</p>
Text Preview
<!-- Box shadow -->
<div style="box-shadow: 4px 4px #40304c; width: 100px; height: 100px;"></div>
<!-- Border color -->
<div style="border: 4px solid #40304c; width: 100px; height: 100px;"></div>
<!-- Text shadow -->
<h1 style="color: #222; text-shadow: 2px 2px 0 #40304c;">Text Shadow Preview</h1>
Text Shadow Preview
<!-- Background with text -->
<div style="background: #40304c; color: #fff; padding: 16px; border-radius: 8px;">
  #40304C
</div>
#40304C
On Black Background
#40304C
On White Background
#40304C

Related Colors of #40304C

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