#340ECA

#340eca ≈ Medium Blue

  • violet
  • Lightness: medium
  • Saturation: strong
  • Cool

#340eca is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 20.39% red, 5.49% green and 79.22% blue; printed in CMYK it uses 74.26% cyan, 93.07% magenta, 0% yellow and 20.78% black. Its hue angle is 252.13°, with 87.04% saturation and 42.35% 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 10.19:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 2.44.

Description generated from the measured properties of this color.

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

Readable text 10.19:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.06:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #414141 ≈ 0.003% of males
Achromatomaly #3c338d ≈ 0.001% of males
Protanopia #0049cf ≈ 1.01% of males
Deuteranopia #0039c7 ≈ 1.27% of males
Tritanopia #005476 ≈ 0.0001% of males
Protanomaly #0039cd ≈ 1.08% of males
Deuteranomaly #002dc8 ≈ 4.63% of males
Tritanomaly #00429f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-340eca {
  color: #340eca;
}
Background
.bg-340eca {
  background-color: #340eca;
  color: #ffffff;
}
Border
.border-340eca {
  border: 2px solid #340eca;
}
CSS variables
:root {
  --color-primary: #340eca;
  --color-primary-rgb: 52 14 202;
  --color-primary-hsl: 252 87% 42%;
}
Gradient
.gradient-340eca {
  background: linear-gradient(135deg, #340eca, #920eca);
}
Colored shadow
.shadow-340eca {
  box-shadow: 0 8px 24px rgb(52 14 202 / 0.35);
}

Medium Blue
#340eca  rgb(52, 14, 202)  hsl(252, 87%, 42%)  Medium Blue
#a4ca0e  rgb(164, 202, 14)  hsl(72, 87%, 42%)  Yellow Green
#ca340e  rgb(202, 52, 14)  hsl(12, 87%, 42%)  Sinopia
#0eca34  rgb(14, 202, 52)  hsl(132, 87%, 42%)  Lime Green