#340EA5

#340ea5 ≈ Zaffre

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

#340ea5 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 64.71% blue; printed in CMYK it uses 68.48% cyan, 91.52% magenta, 0% yellow and 35.29% black. Its hue angle is 255.1°, with 84.36% saturation and 35.1% 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 call-to-action buttons. White text on this color reaches a contrast ratio of 11.99:1 (WCAG AAA). The closest named color is Zaffre (#0014a8), ΔE 3.12.

Description generated from the measured properties of this color.

Conversions of #340ea5 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.0376

Readable text 11.99:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.75:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #373737 ≈ 0.003% of males
Achromatomaly #362b74 ≈ 0.001% of males
Protanopia #003ca9 ≈ 1.01% of males
Deuteranopia #0031a3 ≈ 1.27% of males
Tritanopia #004360 ≈ 0.0001% of males
Protanomaly #002fa7 ≈ 1.08% of males
Deuteranomaly #0027a4 ≈ 4.63% of males
Tritanomaly #003581 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Zaffre
#340ea5  rgb(52, 14, 165)  hsl(255, 84%, 35%)  Zaffre
#7fa50e  rgb(127, 165, 14)  hsl(75, 84%, 35%)  Apple Green
#a5340e  rgb(165, 52, 14)  hsl(15, 84%, 35%)  Rufous
#0ea534  rgb(14, 165, 52)  hsl(135, 84%, 35%)  Islamic Green