#540CBB

#540cbb ≈ Medium Blue

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

#540cbb is a color from the violet family, with low lightness and strong saturation. In the RGB model it is made of 32.94% red, 4.71% green and 73.33% blue; printed in CMYK it uses 55.08% cyan, 93.58% magenta, 0% yellow and 26.67% black. Its hue angle is 264.69°, with 87.94% saturation and 39.02% 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.78:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 5.68.

Description generated from the measured properties of this color.

Conversions of #540cbb 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.0574

Readable text 9.78:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.15:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #444444 ≈ 0.003% of males
Achromatomaly #4b3585 ≈ 0.001% of males
Protanopia #0047bf ≈ 1.01% of males
Deuteranopia #0040b8 ≈ 1.27% of males
Tritanopia #294b6d ≈ 0.0001% of males
Protanomaly #0038be ≈ 1.08% of males
Deuteranomaly #0032b9 ≈ 4.63% of males
Tritanomaly #3e3b93 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540cbb {
  color: #540cbb;
}
Background
.bg-540cbb {
  background-color: #540cbb;
  color: #ffffff;
}
Border
.border-540cbb {
  border: 2px solid #540cbb;
}
CSS variables
:root {
  --color-primary: #540cbb;
  --color-primary-rgb: 84 12 187;
  --color-primary-hsl: 265 88% 39%;
}
Gradient
.gradient-540cbb {
  background: linear-gradient(135deg, #540cbb, #ac0cbb);
}
Colored shadow
.shadow-540cbb {
  box-shadow: 0 8px 24px rgb(84 12 187 / 0.35);
}

Medium Blue
#540cbb  rgb(84, 12, 187)  hsl(265, 88%, 39%)  Medium Blue
#73bb0c  rgb(115, 187, 12)  hsl(85, 88%, 39%)  Kelly Green
#bb540c  rgb(187, 84, 12)  hsl(25, 88%, 39%)  Burnt Orange
#0cbb54  rgb(12, 187, 84)  hsl(145, 88%, 39%)  Emerald