#540DB4

#540db4 ≈ Medium Blue

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

#540db4 is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 32.94% red, 5.1% green and 70.59% blue; printed in CMYK it uses 53.33% cyan, 92.78% magenta, 0% yellow and 29.41% black. Its hue angle is 265.51°, with 86.53% saturation and 37.84% 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.03:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 6.03.

Description generated from the measured properties of this color.

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

Readable text 10.03:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.09:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #424242 ≈ 0.003% of males
Achromatomaly #4a3480 ≈ 0.001% of males
Protanopia #0044b8 ≈ 1.01% of males
Deuteranopia #003fb1 ≈ 1.27% of males
Tritanopia #304869 ≈ 0.0001% of males
Protanomaly #0036b6 ≈ 1.08% of males
Deuteranomaly #0031b2 ≈ 4.63% of males
Tritanomaly #41388d ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540db4 {
  color: #540db4;
}
Background
.bg-540db4 {
  background-color: #540db4;
  color: #ffffff;
}
Border
.border-540db4 {
  border: 2px solid #540db4;
}
CSS variables
:root {
  --color-primary: #540db4;
  --color-primary-rgb: 84 13 180;
  --color-primary-hsl: 266 87% 38%;
}
Gradient
.gradient-540db4 {
  background: linear-gradient(135deg, #540db4, #a70db4);
}
Colored shadow
.shadow-540db4 {
  box-shadow: 0 8px 24px rgb(84 13 180 / 0.35);
}

Medium Blue
#540db4  rgb(84, 13, 180)  hsl(266, 87%, 38%)  Medium Blue
#6db40d  rgb(109, 180, 13)  hsl(86, 87%, 38%)  Kelly Green
#b4540d  rgb(180, 84, 13)  hsl(26, 87%, 38%)  Burnt Orange
#0db454  rgb(13, 180, 84)  hsl(146, 87%, 38%)  Medium Sea Green