#5F38CB

#5f38cb ≈ Ocean Blue

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

#5f38cb is a color from the violet family, with medium lightness and strong saturation. In the RGB model it is made of 37.25% red, 21.96% green and 79.61% blue; printed in CMYK it uses 53.2% cyan, 72.41% magenta, 0% yellow and 20.39% black. Its hue angle is 255.92°, with 58.57% saturation and 50.78% 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.21:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 4.65.

Description generated from the measured properties of this color.

Conversions of #5f38cb 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.0957

Readable text 7.21:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.91:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #575757 ≈ 0.003% of males
Achromatomaly #5a4d94 ≈ 0.001% of males
Protanopia #005bcf ≈ 1.01% of males
Deuteranopia #0053c8 ≈ 1.27% of males
Tritanopia #34607e ≈ 0.0001% of males
Protanomaly #164fce ≈ 1.08% of males
Deuteranomaly #194ac9 ≈ 4.63% of males
Tritanomaly #4952a3 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5f38cb {
  color: #5f38cb;
}
Background
.bg-5f38cb {
  background-color: #5f38cb;
  color: #ffffff;
}
Border
.border-5f38cb {
  border: 2px solid #5f38cb;
}
CSS variables
:root {
  --color-primary: #5f38cb;
  --color-primary-rgb: 95 56 203;
  --color-primary-hsl: 256 59% 51%;
}
Gradient
.gradient-5f38cb {
  background: linear-gradient(135deg, #5f38cb, #a838cb);
}
Colored shadow
.shadow-5f38cb {
  box-shadow: 0 8px 24px rgb(95 56 203 / 0.35);
}

Ocean Blue
#5f38cb  rgb(95, 56, 203)  hsl(256, 59%, 51%)  Ocean Blue
#a4cb38  rgb(164, 203, 56)  hsl(76, 59%, 51%)  Yellow Green
#cb5f38  rgb(203, 95, 56)  hsl(16, 59%, 51%)  Flame
#38cb5f  rgb(56, 203, 95)  hsl(136, 59%, 51%)  Emerald