#342B40

#342b40 ≈ Eggplant

  • violet
  • Lightness: low
  • Saturation: muted
  • Cool

#342b40 is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20.39% red, 16.86% green and 25.1% blue; printed in CMYK it uses 18.75% cyan, 32.81% magenta, 0% yellow and 74.9% black. Its hue angle is 265.71°, with 19.63% saturation and 20.98% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and corporate identities. White text on this color reaches a contrast ratio of 13.41:1 (WCAG AAA). The closest named color is Eggplant (#614051), ΔE 12.46.

Description generated from the measured properties of this color.

Conversions of #342b40 into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#333333
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0283

Readable text 13.41:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.57:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2f2f2f ≈ 0.003% of males
Achromatomaly #312d36 ≈ 0.001% of males
Protanopia #272f41 ≈ 1.01% of males
Deuteranopia #292f3f ≈ 1.27% of males
Tritanopia #322e32 ≈ 0.0001% of males
Protanomaly #2d2d41 ≈ 1.08% of males
Deuteranomaly #2d2d40 ≈ 4.63% of males
Tritanomaly #332d38 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-342b40 {
  color: #342b40;
}
Background
.bg-342b40 {
  background-color: #342b40;
  color: #ffffff;
}
Border
.border-342b40 {
  border: 2px solid #342b40;
}
CSS variables
:root {
  --color-primary: #342b40;
  --color-primary-rgb: 52 43 64;
  --color-primary-hsl: 266 20% 21%;
}
Gradient
.gradient-342b40 {
  background: linear-gradient(135deg, #342b40, #3e2b40);
}
Colored shadow
.shadow-342b40 {
  box-shadow: 0 8px 24px rgb(52 43 64 / 0.35);
}

Eggplant
#342b40  rgb(52, 43, 64)  hsl(266, 20%, 21%)  Eggplant
#37402b  rgb(55, 64, 43)  hsl(86, 20%, 21%)  Rifle Green
#40342b  rgb(64, 52, 43)  hsl(26, 20%, 21%)  Taupe
#2b4034  rgb(43, 64, 52)  hsl(146, 20%, 21%)  Phthalo Green