#340EA2

#340ea2 ≈ Zaffre

  • violet
  • Lightness: low
  • Saturation: strong
  • Cool

#340ea2 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 20.39% red, 5.49% green and 63.53% blue; printed in CMYK it uses 67.9% cyan, 91.36% magenta, 0% yellow and 36.47% black. Its hue angle is 255.41°, with 84.09% saturation and 34.51% 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 12.13:1 (WCAG AAA). The closest named color is Zaffre (#0014a8), ΔE 3.18.

Description generated from the measured properties of this color.

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

Readable text 12.13:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.73:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #363636 ≈ 0.003% of males
Achromatomaly #352b71 ≈ 0.001% of males
Protanopia #003ba6 ≈ 1.01% of males
Deuteranopia #0030a0 ≈ 1.27% of males
Tritanopia #00425e ≈ 0.0001% of males
Protanomaly #002ea4 ≈ 1.08% of males
Deuteranomaly #0026a1 ≈ 4.63% of males
Tritanomaly #02347f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-340ea2 {
  color: #340ea2;
}
Background
.bg-340ea2 {
  background-color: #340ea2;
  color: #ffffff;
}
Border
.border-340ea2 {
  border: 2px solid #340ea2;
}
CSS variables
:root {
  --color-primary: #340ea2;
  --color-primary-rgb: 52 14 162;
  --color-primary-hsl: 255 84% 35%;
}
Gradient
.gradient-340ea2 {
  background: linear-gradient(135deg, #340ea2, #7e0ea2);
}
Colored shadow
.shadow-340ea2 {
  box-shadow: 0 8px 24px rgb(52 14 162 / 0.35);
}

Zaffre
#340ea2  rgb(52, 14, 162)  hsl(255, 84%, 35%)  Zaffre
#7ca20e  rgb(124, 162, 14)  hsl(75, 84%, 35%)  Apple Green
#a2340e  rgb(162, 52, 14)  hsl(15, 84%, 35%)  Rufous
#0ea234  rgb(14, 162, 52)  hsl(135, 84%, 35%)  Islamic Green