#340CB2

#340cb2 ≈ Medium Blue

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

#340cb2 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 20.39% red, 4.71% green and 69.8% blue; printed in CMYK it uses 70.79% cyan, 93.26% magenta, 0% yellow and 30.2% black. Its hue angle is 254.46°, with 87.37% saturation and 37.25% 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.4:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 3.44.

Description generated from the measured properties of this color.

Conversions of #340cb2 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.0421

Readable text 11.4:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.84:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3a3a3a ≈ 0.003% of males
Achromatomaly #382d7d ≈ 0.001% of males
Protanopia #0040b6 ≈ 1.01% of males
Deuteranopia #0033af ≈ 1.27% of males
Tritanopia #004968 ≈ 0.0001% of males
Protanomaly #0032b4 ≈ 1.08% of males
Deuteranomaly #0028b0 ≈ 4.63% of males
Tritanomaly #00398c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-340cb2 {
  color: #340cb2;
}
Background
.bg-340cb2 {
  background-color: #340cb2;
  color: #ffffff;
}
Border
.border-340cb2 {
  border: 2px solid #340cb2;
}
CSS variables
:root {
  --color-primary: #340cb2;
  --color-primary-rgb: 52 12 178;
  --color-primary-hsl: 254 87% 37%;
}
Gradient
.gradient-340cb2 {
  background: linear-gradient(135deg, #340cb2, #870cb2);
}
Colored shadow
.shadow-340cb2 {
  box-shadow: 0 8px 24px rgb(52 12 178 / 0.35);
}

Medium Blue
#340cb2  rgb(52, 12, 178)  hsl(254, 87%, 37%)  Medium Blue
#8ab20c  rgb(138, 178, 12)  hsl(74, 87%, 37%)  Apple Green
#b2340c  rgb(178, 52, 12)  hsl(14, 87%, 37%)  Rust
#0cb234  rgb(12, 178, 52)  hsl(134, 87%, 37%)  Kelly Green