#0540BA

#0540ba ≈ Persian Blue

  • blue
  • Lightness: low
  • Saturation: strong
  • Cool

#0540ba is a color from the blue family, with low lightness and strong saturation. In the RGB model it is made of 1.96% red, 25.1% green and 72.94% blue; printed in CMYK it uses 97.31% cyan, 65.59% magenta, 0% yellow and 27.06% black. Its hue angle is 220.44°, with 94.76% saturation and 37.45% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and call-to-action buttons. White text on this color reaches a contrast ratio of 8.58:1 (WCAG AAA). The closest named color is Persian Blue (#1c39bb), ΔE 2.62.

Description generated from the measured properties of this color.

Conversions of #0540ba into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#0033cc
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0724

Readable text 8.58:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.45:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4c4c4c ≈ 0.003% of males
Achromatomaly #3b4886 ≈ 0.001% of males
Protanopia #0054be ≈ 1.01% of males
Deuteranopia #0044b8 ≈ 1.27% of males
Tritanopia #006177 ≈ 0.0001% of males
Protanomaly #004dbc ≈ 1.08% of males
Deuteranomaly #0043b9 ≈ 4.63% of males
Tritanomaly #005696 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0540ba {
  color: #0540ba;
}
Background
.bg-0540ba {
  background-color: #0540ba;
  color: #ffffff;
}
Border
.border-0540ba {
  border: 2px solid #0540ba;
}
CSS variables
:root {
  --color-primary: #0540ba;
  --color-primary-rgb: 5 64 186;
  --color-primary-hsl: 220 95% 37%;
}
Gradient
.gradient-0540ba {
  background: linear-gradient(135deg, #0540ba, #2405ba);
}
Colored shadow
.shadow-0540ba {
  box-shadow: 0 8px 24px rgb(5 64 186 / 0.35);
}

Persian Blue
#0540ba  rgb(5, 64, 186)  hsl(220, 95%, 37%)  Persian Blue
#ba7f05  rgb(186, 127, 5)  hsl(40, 95%, 37%)  Dark Goldenrod
#ba0540  rgb(186, 5, 64)  hsl(340, 95%, 37%)  Cardinal
#40ba05  rgb(64, 186, 5)  hsl(100, 95%, 37%)  Kelly Green