Color: #271A42

#271A42 Color Information

#271A42 is a dark color. The closest websafe version is #271A42. A complement of this color would be #34421A, perceived brightness is 0.14, and the grayscale version is #2E2E2E.

In the HSL color space, this color has a hue angle of 260°,a saturation of 43%, and a lightness of 18%.The HSV representation shows a hue of 260°, a saturation of 61%, and a value of 26%.

In a RGB color space, #271A42 is composed of 15% red, 10% green and 26% blue. Whereas in a CMYK color space, it is composed of 41% cyan, 61% magenta, 0% yellow and 74% black.

In the Yxy color space, this color is represented as Y: 1.52, x: 0.2711, and y: 0.2000.

Color Code #271A42

#271A42rgb(39, 26, 66)
HEX
#271A42
RGB
rgb(39, 26, 66)
HSL
hsl(260, 43%, 18%)
HSV
hsv(260, 61%, 26%)
CMYK
41%, 61%, 0%, 74%
XYZ
X: 2.06, Y: 1.52, Z: 4.02
Lab
L: 12.75, a: 14.87, b: -23.47
Name

Shades of Color #271A42

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

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

#271A42rgb(39, 26, 66)

About #271A42 Color Code

In the HSL color space, this color has a hue angle of 260°, a saturation of 43%, and a lightness of 18%. The HSV representation shows a hue of 260°, a saturation of 61%, and a value of 26%.

  • HEX: #271A42
  • RGB: rgb(39, 26, 66)
  • HSL: hsl(260, 43%, 18%)
  • HSV: hsv(260, 61%, 26%)
  • CMYK: 41.00% cyan, 61.00% magenta, 0.00% yellow, 74.00% black
  • XYZ: 2.06, 1.52, 4.02
  • Yxy: 1.52, 0.2711, 0.2000
  • Hunter Lab: 12.75, 14.87, -23.47
  • CIE-Lab: 12.75, 14.87, -23.47

In the XYZ color space, this color is represented as X: 2.06, Y: 1.52, Z: 4.02. The Yxy representation further refines this as Y: 1.52, x: 0.2711, and y: 0.2000.

In the Hunter Lab color space, this color is represented as L: 12.75, a: 14.87, and b: -23.47. Similarly, in the CIE-Lab color space, it is represented as L: 12.75, a: 14.87, and b: -23.47.

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 #271A42

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

Analogous Colors of #271A42

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

Split Complementary Colors of #271A42

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

Tetradic Colors of #271A42

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

Monochromatic Colors of #271A42

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

Complementary Color of #271A42

The complementary color of #271A42 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 #271A42

/* Using HEX */
body {
  background-color: #271a42;
}
/* Using RGB */
body {
  background-color: rgb(39, 26, 66);
}
/* Using RGB with opacity */
body {
  background-color: rgba(39, 26, 66, 0.5);
}
/* Using HSL */
body {
  background-color: hsl(260, 43%, 18%);
}
/* Text color */
p {
  color: #271a42;
}
Text Preview
/* Box shadow */
div {
  box-shadow: 4px 4px #271a42;
}
/* Border color */
.box {
  border: 4px solid #271a42;
}
/* Text shadow */
h1 {
  color: #222;
  text-shadow: 2px 2px 0 #271a42;
}
Text Shadow Preview
/* Background with text */
div {
  background: #271a42;
  color: #fff;
  padding: 16px;
  border-radius: 8px;
}
#271A42
On Black Background
#271A42
On White Background
#271A42

HTML Examples of #271A42

<!-- Using HEX -->
<div style="background-color: #271a42; width: 100px; height: 100px;"></div>
<!-- Using RGB -->
<div style="background-color: rgb(39, 26, 66); width: 100px; height: 100px;"></div>
<!-- Using RGB with opacity -->
<div style="background-color: rgba(39, 26, 66, 0.5); width: 100px; height: 100px;"></div>
<!-- Using HSL -->
<div style="background-color: hsl(260, 43%, 18%); width: 100px; height: 100px;"></div>
<!-- Text color -->
<p style="color: #271a42;">This is a text example.</p>
Text Preview
<!-- Box shadow -->
<div style="box-shadow: 4px 4px #271a42; width: 100px; height: 100px;"></div>
<!-- Border color -->
<div style="border: 4px solid #271a42; width: 100px; height: 100px;"></div>
<!-- Text shadow -->
<h1 style="color: #222; text-shadow: 2px 2px 0 #271a42;">Text Shadow Preview</h1>
Text Shadow Preview
<!-- Background with text -->
<div style="background: #271a42; color: #fff; padding: 16px; border-radius: 8px;">
  #271A42
</div>
#271A42
On Black Background
#271A42
On White Background
#271A42

Related Colors of #271A42

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