#0540EF

#0540ef ≈ Persian Blue

  • blue
  • Lightness: medium
  • Saturation: vivid
  • Cool

#0540ef is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 1.96% red, 25.1% green and 93.73% blue; printed in CMYK it uses 97.91% cyan, 73.22% magenta, 0% yellow and 6.27% black. Its hue angle is 224.87°, with 95.9% saturation and 47.84% 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 7.03:1 (WCAG AAA). The closest named color is Persian Blue (#1c39bb), ΔE 6.77.

Description generated from the measured properties of this color.

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

Readable text 7.03:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.99:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #595959 ≈ 0.003% of males
Achromatomaly #4550ab ≈ 0.001% of males
Protanopia #0064f4 ≈ 1.01% of males
Deuteranopia #004eec ≈ 1.27% of males
Tritanopia #007494 ≈ 0.0001% of males
Protanomaly #0057f2 ≈ 1.08% of males
Deuteranomaly #0049ed ≈ 4.63% of males
Tritanomaly #0063bf ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0540ef {
  color: #0540ef;
}
Background
.bg-0540ef {
  background-color: #0540ef;
  color: #ffffff;
}
Border
.border-0540ef {
  border: 2px solid #0540ef;
}
CSS variables
:root {
  --color-primary: #0540ef;
  --color-primary-rgb: 5 64 239;
  --color-primary-hsl: 225 96% 48%;
}
Gradient
.gradient-0540ef {
  background: linear-gradient(135deg, #0540ef, #3f05ef);
}
Colored shadow
.shadow-0540ef {
  box-shadow: 0 8px 24px rgb(5 64 239 / 0.35);
}

Persian Blue
#0540ef  rgb(5, 64, 239)  hsl(225, 96%, 48%)  Persian Blue
#efb405  rgb(239, 180, 5)  hsl(45, 96%, 48%)  Amber
#ef0540  rgb(239, 5, 64)  hsl(345, 96%, 48%)  Crimson
#40ef05  rgb(64, 239, 5)  hsl(105, 96%, 48%)  Neon Green