#0840EC

#0840ec ≈ Persian Blue

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

#0840ec is a color from the blue family, with medium lightness and vivid saturation. In the RGB model it is made of 3.14% red, 25.1% green and 92.55% blue; printed in CMYK it uses 96.61% cyan, 72.88% magenta, 0% yellow and 7.45% black. Its hue angle is 225.26°, with 93.44% 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.11:1 (WCAG AAA). The closest named color is Persian Blue (#1c39bb), ΔE 6.43.

Description generated from the measured properties of this color.

Conversions of #0840ec 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.0977

Readable text 7.11:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.95:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #585858 ≈ 0.003% of males
Achromatomaly #454fa9 ≈ 0.001% of males
Protanopia #0063f1 ≈ 1.01% of males
Deuteranopia #004de9 ≈ 1.27% of males
Tritanopia #007393 ≈ 0.0001% of males
Protanomaly #0057ef ≈ 1.08% of males
Deuteranomaly #0048ea ≈ 4.63% of males
Tritanomaly #0062bd ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-0840ec {
  color: #0840ec;
}
Background
.bg-0840ec {
  background-color: #0840ec;
  color: #ffffff;
}
Border
.border-0840ec {
  border: 2px solid #0840ec;
}
CSS variables
:root {
  --color-primary: #0840ec;
  --color-primary-rgb: 8 64 236;
  --color-primary-hsl: 225 93% 48%;
}
Gradient
.gradient-0840ec {
  background: linear-gradient(135deg, #0840ec, #4208ec);
}
Colored shadow
.shadow-0840ec {
  box-shadow: 0 8px 24px rgb(8 64 236 / 0.35);
}

Persian Blue
#0840ec  rgb(8, 64, 236)  hsl(225, 93%, 48%)  Persian Blue
#ecb408  rgb(236, 180, 8)  hsl(45, 93%, 48%)  Meat Brown
#ec0840  rgb(236, 8, 64)  hsl(345, 93%, 48%)  Crimson
#40ec08  rgb(64, 236, 8)  hsl(105, 93%, 48%)  Neon Green