#5D40CA

#5d40ca ≈ Ocean Blue

  • violet
  • Lightness: medium
  • Saturation: strong
  • Cool

#5d40ca is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 36.47% red, 25.1% green and 79.22% blue; printed in CMYK it uses 53.96% cyan, 68.32% magenta, 0% yellow and 20.78% black. Its hue angle is 252.61°, with 56.56% saturation and 52.16% 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 brand accents. White text on this color reaches a contrast ratio of 6.88:1 (WCAG AA). The closest named color is Ocean Blue (#4f42b5), ΔE 3.74.

Description generated from the measured properties of this color.

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

Readable text 6.88:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 3.05:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #5a5a5a ≈ 0.003% of males
Achromatomaly #5b5194 ≈ 0.001% of males
Protanopia #005ece ≈ 1.01% of males
Deuteranopia #0056c7 ≈ 1.27% of males
Tritanopia #2f6480 ≈ 0.0001% of males
Protanomaly #1f53cd ≈ 1.08% of males
Deuteranomaly #1f4ec8 ≈ 4.63% of males
Tritanomaly #4657a3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5d40ca {
  color: #5d40ca;
}
Background
.bg-5d40ca {
  background-color: #5d40ca;
  color: #ffffff;
}
Border
.border-5d40ca {
  border: 2px solid #5d40ca;
}
CSS variables
:root {
  --color-primary: #5d40ca;
  --color-primary-rgb: 93 64 202;
  --color-primary-hsl: 253 57% 52%;
}
Gradient
.gradient-5d40ca {
  background: linear-gradient(135deg, #5d40ca, #a240ca);
}
Colored shadow
.shadow-5d40ca {
  box-shadow: 0 8px 24px rgb(93 64 202 / 0.35);
}

Ocean Blue
#5d40ca  rgb(93, 64, 202)  hsl(253, 57%, 52%)  Ocean Blue
#adca40  rgb(173, 202, 64)  hsl(73, 57%, 52%)  Yellow Green
#ca5d40  rgb(202, 93, 64)  hsl(13, 57%, 52%)  Cinnabar
#40ca5d  rgb(64, 202, 93)  hsl(133, 57%, 52%)  Emerald