#5840F0

#5840f0 ≈ Majorelle Blue

  • blue
  • Lightness: medium
  • Saturation: strong
  • Cool

#5840f0 is a color from the blue family, with medium lightness and strong saturation. In the RGB model it is made of 34.51% red, 25.1% green and 94.12% blue; printed in CMYK it uses 63.33% cyan, 73.33% magenta, 0% yellow and 5.88% black. Its hue angle is 248.18°, with 85.44% saturation and 59.61% 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 6.16:1 (WCAG AA). The closest named color is Majorelle Blue (#6050dc), ΔE 4.21.

Description generated from the measured properties of this color.

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

Readable text 6.16:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.41:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #616161 ≈ 0.003% of males
Achromatomaly #5e56ae ≈ 0.001% of males
Protanopia #0068f5 ≈ 1.01% of males
Deuteranopia #005aed ≈ 1.27% of males
Tritanopia #007295 ≈ 0.0001% of males
Protanomaly #005af3 ≈ 1.08% of males
Deuteranomaly #0051ee ≈ 4.63% of males
Tritanomaly #2362c0 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5840f0 {
  color: #5840f0;
}
Background
.bg-5840f0 {
  background-color: #5840f0;
  color: #ffffff;
}
Border
.border-5840f0 {
  border: 2px solid #5840f0;
}
CSS variables
:root {
  --color-primary: #5840f0;
  --color-primary-rgb: 88 64 240;
  --color-primary-hsl: 248 85% 60%;
}
Gradient
.gradient-5840f0 {
  background: linear-gradient(135deg, #5840f0, #b040f0);
}
Colored shadow
.shadow-5840f0 {
  box-shadow: 0 8px 24px rgb(88 64 240 / 0.35);
}

Majorelle Blue
#5840f0  rgb(88, 64, 240)  hsl(248, 85%, 60%)  Majorelle Blue
#d8f040  rgb(216, 240, 64)  hsl(68, 85%, 60%)  Pear
#f05840  rgb(240, 88, 64)  hsl(8, 85%, 60%)  Tomato
#40f058  rgb(64, 240, 88)  hsl(128, 85%, 60%)  Spring Green