#342EC4

#342ec4 ≈ Persian Blue

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

#342ec4 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 76.86% blue; printed in CMYK it uses 73.47% cyan, 76.53% magenta, 0% yellow and 23.14% black. Its hue angle is 242.4°, with 61.98% saturation and 47.45% 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 brand accents. White text on this color reaches a contrast ratio of 9:1 (WCAG AAA). The closest named color is Persian Blue (#1c39bb), ΔE 3.95.

Description generated from the measured properties of this color.

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

Readable text 9:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.33:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #494949 ≈ 0.003% of males
Achromatomaly #42408c ≈ 0.001% of males
Protanopia #0050c8 ≈ 1.01% of males
Deuteranopia #0042c1 ≈ 1.27% of males
Tritanopia #005b78 ≈ 0.0001% of males
Protanomaly #0045c7 ≈ 1.08% of males
Deuteranomaly #003bc2 ≈ 4.63% of males
Tritanomaly #004d9c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Persian Blue
#342ec4  rgb(52, 46, 196)  hsl(242, 62%, 47%)  Persian Blue
#bec42e  rgb(190, 196, 46)  hsl(62, 62%, 47%)  Pear
#c4342e  rgb(196, 52, 46)  hsl(2, 62%, 47%)  Persian Red
#2ec434  rgb(46, 196, 52)  hsl(122, 62%, 47%)  Lime Green