#342EEA

#342eea ≈ Han Purple

  • blue
  • Lightness: medium
  • Saturation: strong
  • Cool

#342eea is a color from the blue family, with medium lightness and strong saturation. In the RGB model it is made of 20.39% red, 18.04% green and 91.76% blue; printed in CMYK it uses 77.78% cyan, 80.34% magenta, 0% yellow and 8.24% black. Its hue angle is 241.91°, with 81.74% saturation and 54.9% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and call-to-action buttons. White text on this color reaches a contrast ratio of 7.71:1 (WCAG AAA). The closest named color is Han Purple (#5218fa), ΔE 3.81.

Description generated from the measured properties of this color.

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

Readable text 7.71:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.72:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #535353 ≈ 0.003% of males
Achromatomaly #4847a6 ≈ 0.001% of males
Protanopia #005cef ≈ 1.01% of males
Deuteranopia #0049e7 ≈ 1.27% of males
Tritanopia #006a8e ≈ 0.0001% of males
Protanomaly #004ded ≈ 1.08% of males
Deuteranomaly #0040e8 ≈ 4.63% of males
Tritanomaly #0058ba ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-342eea {
  color: #342eea;
}
Background
.bg-342eea {
  background-color: #342eea;
  color: #ffffff;
}
Border
.border-342eea {
  border: 2px solid #342eea;
}
CSS variables
:root {
  --color-primary: #342eea;
  --color-primary-rgb: 52 46 234;
  --color-primary-hsl: 242 82% 55%;
}
Gradient
.gradient-342eea {
  background: linear-gradient(135deg, #342eea, #922eea);
}
Colored shadow
.shadow-342eea {
  box-shadow: 0 8px 24px rgb(52 46 234 / 0.35);
}

Han Purple
#342eea  rgb(52, 46, 234)  hsl(242, 82%, 55%)  Han Purple
#e4ea2e  rgb(228, 234, 46)  hsl(62, 82%, 55%)  Pear
#ea342e  rgb(234, 52, 46)  hsl(2, 82%, 55%)  Cinnabar
#2eea34  rgb(46, 234, 52)  hsl(122, 82%, 55%)  Lime