#540CBF

#540cbf ≈ Medium Blue

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

#540cbf 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 74.9% blue; printed in CMYK it uses 56.02% cyan, 93.72% magenta, 0% yellow and 25.1% black. Its hue angle is 264.13°, with 88.18% saturation and 39.8% 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.62:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 5.57.

Description generated from the measured properties of this color.

Conversions of #540cbf 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.0591

Readable text 9.62:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.18:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #454545 ≈ 0.003% of males
Achromatomaly #4b3687 ≈ 0.001% of males
Protanopia #0048c3 ≈ 1.01% of males
Deuteranopia #0040bc ≈ 1.27% of males
Tritanopia #244d70 ≈ 0.0001% of males
Protanomaly #0039c2 ≈ 1.08% of males
Deuteranomaly #0033bd ≈ 4.63% of males
Tritanomaly #3d3c96 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Medium Blue
#540cbf  rgb(84, 12, 191)  hsl(264, 88%, 40%)  Medium Blue
#77bf0c  rgb(119, 191, 12)  hsl(84, 88%, 40%)  Apple Green
#bf540c  rgb(191, 84, 12)  hsl(24, 88%, 40%)  Burnt Orange
#0cbf54  rgb(12, 191, 84)  hsl(144, 88%, 40%)  Emerald