#4D31CD

#4d31cd ≈ Ocean Blue

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

#4d31cd is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 30.2% red, 19.22% green and 80.39% blue; printed in CMYK it uses 62.44% cyan, 76.1% magenta, 0% yellow and 19.61% black. Its hue angle is 250.77°, with 61.42% saturation and 49.8% 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 7.97:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 5.02.

Description generated from the measured properties of this color.

Conversions of #4d31cd 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.0818

Readable text 7.97:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.64:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #515151 ≈ 0.003% of males
Achromatomaly #4f4693 ≈ 0.001% of males
Protanopia #0056d1 ≈ 1.01% of males
Deuteranopia #004bca ≈ 1.27% of males
Tritanopia #005e7e ≈ 0.0001% of males
Protanomaly #004ad0 ≈ 1.08% of males
Deuteranomaly #0042cb ≈ 4.63% of males
Tritanomaly #2550a3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-4d31cd {
  color: #4d31cd;
}
Background
.bg-4d31cd {
  background-color: #4d31cd;
  color: #ffffff;
}
Border
.border-4d31cd {
  border: 2px solid #4d31cd;
}
CSS variables
:root {
  --color-primary: #4d31cd;
  --color-primary-rgb: 77 49 205;
  --color-primary-hsl: 251 61% 50%;
}
Gradient
.gradient-4d31cd {
  background: linear-gradient(135deg, #4d31cd, #9b31cd);
}
Colored shadow
.shadow-4d31cd {
  box-shadow: 0 8px 24px rgb(77 49 205 / 0.35);
}

Ocean Blue
#4d31cd  rgb(77, 49, 205)  hsl(251, 61%, 50%)  Ocean Blue
#b1cd31  rgb(177, 205, 49)  hsl(71, 61%, 50%)  June Bud
#cd4d31  rgb(205, 77, 49)  hsl(11, 61%, 50%)  Cinnabar
#31cd4d  rgb(49, 205, 77)  hsl(131, 61%, 50%)  Lime Green