#340FC2

#340fc2 ≈ Medium Blue

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

#340fc2 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.88% green and 76.08% blue; printed in CMYK it uses 73.2% cyan, 92.27% magenta, 0% yellow and 23.92% black. Its hue angle is 252.4°, with 85.65% saturation and 40.98% 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.54:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 2.43.

Description generated from the measured properties of this color.

Conversions of #340fc2 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.0497

Readable text 10.54:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.99:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3f3f3f ≈ 0.003% of males
Achromatomaly #3b3288 ≈ 0.001% of males
Protanopia #0046c6 ≈ 1.01% of males
Deuteranopia #0037bf ≈ 1.27% of males
Tritanopia #005172 ≈ 0.0001% of males
Protanomaly #0037c5 ≈ 1.08% of males
Deuteranomaly #002cc0 ≈ 4.63% of males
Tritanomaly #004098 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-340fc2 {
  color: #340fc2;
}
Background
.bg-340fc2 {
  background-color: #340fc2;
  color: #ffffff;
}
Border
.border-340fc2 {
  border: 2px solid #340fc2;
}
CSS variables
:root {
  --color-primary: #340fc2;
  --color-primary-rgb: 52 15 194;
  --color-primary-hsl: 252 86% 41%;
}
Gradient
.gradient-340fc2 {
  background: linear-gradient(135deg, #340fc2, #8d0fc2);
}
Colored shadow
.shadow-340fc2 {
  box-shadow: 0 8px 24px rgb(52 15 194 / 0.35);
}

Medium Blue
#340fc2  rgb(52, 15, 194)  hsl(252, 86%, 41%)  Medium Blue
#9dc20f  rgb(157, 194, 15)  hsl(72, 86%, 41%)  Apple Green
#c2340f  rgb(194, 52, 15)  hsl(12, 86%, 41%)  Rust
#0fc234  rgb(15, 194, 52)  hsl(132, 86%, 41%)  Lime Green