#540BAF

#540baf ≈ Medium Blue

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

#540baf 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.31% green and 68.63% blue; printed in CMYK it uses 52% cyan, 93.71% magenta, 0% yellow and 31.37% black. Its hue angle is 266.71°, with 88.17% saturation and 36.47% 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.27:1 (WCAG AAA). The closest named color is Medium Blue (#0000cd), ΔE 6.35.

Description generated from the measured properties of this color.

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

Readable text 10.27:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.04:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #414141 ≈ 0.003% of males
Achromatomaly #49337c ≈ 0.001% of males
Protanopia #0043b3 ≈ 1.01% of males
Deuteranopia #003dac ≈ 1.27% of males
Tritanopia #344566 ≈ 0.0001% of males
Protanomaly #0034b1 ≈ 1.08% of males
Deuteranomaly #0030ad ≈ 4.63% of males
Tritanomaly #433689 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-540baf {
  color: #540baf;
}
Background
.bg-540baf {
  background-color: #540baf;
  color: #ffffff;
}
Border
.border-540baf {
  border: 2px solid #540baf;
}
CSS variables
:root {
  --color-primary: #540baf;
  --color-primary-rgb: 84 11 175;
  --color-primary-hsl: 267 88% 36%;
}
Gradient
.gradient-540baf {
  background: linear-gradient(135deg, #540baf, #a60baf);
}
Colored shadow
.shadow-540baf {
  box-shadow: 0 8px 24px rgb(84 11 175 / 0.35);
}

Medium Blue
#540baf  rgb(84, 11, 175)  hsl(267, 88%, 36%)  Medium Blue
#66af0b  rgb(102, 175, 11)  hsl(87, 88%, 36%)  Kelly Green
#af540b  rgb(175, 84, 11)  hsl(27, 88%, 36%)  Burnt Orange
#0baf54  rgb(11, 175, 84)  hsl(147, 88%, 36%)  Medium Sea Green