#340BB4

#340bb4 ≈ Medium Blue

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

#340bb4 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.31% green and 70.59% blue; printed in CMYK it uses 71.11% cyan, 93.89% magenta, 0% yellow and 29.41% black. Its hue angle is 254.56°, with 88.48% saturation and 37.45% 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.33:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 3.24.

Description generated from the measured properties of this color.

Conversions of #340bb4 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.0426

Readable text 11.33:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.85:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #3a3a3a ≈ 0.003% of males
Achromatomaly #382e7e ≈ 0.001% of males
Protanopia #0040b8 ≈ 1.01% of males
Deuteranopia #0033b1 ≈ 1.27% of males
Tritanopia #004a69 ≈ 0.0001% of males
Protanomaly #0032b6 ≈ 1.08% of males
Deuteranomaly #0028b2 ≈ 4.63% of males
Tritanomaly #003a8d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-340bb4 {
  color: #340bb4;
}
Background
.bg-340bb4 {
  background-color: #340bb4;
  color: #ffffff;
}
Border
.border-340bb4 {
  border: 2px solid #340bb4;
}
CSS variables
:root {
  --color-primary: #340bb4;
  --color-primary-rgb: 52 11 180;
  --color-primary-hsl: 255 88% 37%;
}
Gradient
.gradient-340bb4 {
  background: linear-gradient(135deg, #340bb4, #890bb4);
}
Colored shadow
.shadow-340bb4 {
  box-shadow: 0 8px 24px rgb(52 11 180 / 0.35);
}

Medium Blue
#340bb4  rgb(52, 11, 180)  hsl(255, 88%, 37%)  Medium Blue
#8bb40b  rgb(139, 180, 11)  hsl(75, 88%, 37%)  Apple Green
#b4340b  rgb(180, 52, 11)  hsl(15, 88%, 37%)  Rust
#0bb434  rgb(11, 180, 52)  hsl(135, 88%, 37%)  Kelly Green