#540baf ≈ Medium Blue
#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.
| 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 luminance | 0.0522 |
Shades
#540baf mixed progressively with black.
Tints
#540baf mixed progressively with white.
Tones
#540baf mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-540baf {
color: #540baf;
}
.bg-540baf {
background-color: #540baf;
color: #ffffff;
}
.border-540baf {
border: 2px solid #540baf;
}
:root {
--color-primary: #540baf;
--color-primary-rgb: 84 11 175;
--color-primary-hsl: 267 88% 36%;
}
.gradient-540baf {
background: linear-gradient(135deg, #540baf, #a60baf);
}
.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