#540DC4

#540dc4 ≈ Medium Blue

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

#540dc4 is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 32.94% red, 5.1% green and 76.86% blue; printed in CMYK it uses 57.14% cyan, 93.37% magenta, 0% yellow and 23.14% black. Its hue angle is 263.28°, with 87.56% 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 9.41:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 5.52.

Description generated from the measured properties of this color.

Conversions of #540dc4 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.0616

Readable text 9.41:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.23:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #464646 ≈ 0.003% of males
Achromatomaly #4c378b ≈ 0.001% of males
Protanopia #004ac8 ≈ 1.01% of males
Deuteranopia #0042c1 ≈ 1.27% of males
Tritanopia #1d4f73 ≈ 0.0001% of males
Protanomaly #003ac7 ≈ 1.08% of males
Deuteranomaly #0034c2 ≈ 4.63% of males
Tritanomaly #3a3e9a ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540dc4 {
  color: #540dc4;
}
Background
.bg-540dc4 {
  background-color: #540dc4;
  color: #ffffff;
}
Border
.border-540dc4 {
  border: 2px solid #540dc4;
}
CSS variables
:root {
  --color-primary: #540dc4;
  --color-primary-rgb: 84 13 196;
  --color-primary-hsl: 263 88% 41%;
}
Gradient
.gradient-540dc4 {
  background: linear-gradient(135deg, #540dc4, #b00dc4);
}
Colored shadow
.shadow-540dc4 {
  box-shadow: 0 8px 24px rgb(84 13 196 / 0.35);
}

Medium Blue
#540dc4  rgb(84, 13, 196)  hsl(263, 88%, 41%)  Medium Blue
#7dc40d  rgb(125, 196, 13)  hsl(83, 88%, 41%)  Yellow Green
#c4540d  rgb(196, 84, 13)  hsl(23, 88%, 41%)  Burnt Orange
#0dc454  rgb(13, 196, 84)  hsl(143, 88%, 41%)  Emerald