#5F40BF

#5f40bf ≈ Ocean Blue

  • violet
  • Lightness: medium
  • Saturation: moderate
  • Cool

#5f40bf is a color from the violet family, with medium lightness and moderate saturation. In the RGB model it is made of 37.25% red, 25.1% green and 74.9% blue; printed in CMYK it uses 50.26% cyan, 66.49% magenta, 0% yellow and 25.1% black. Its hue angle is 254.65°, with 49.8% saturation and 50% 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.07:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 3.07.

Description generated from the measured properties of this color.

Conversions of #5f40bf 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.0986

Readable text 7.07:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.97:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #585858 ≈ 0.003% of males
Achromatomaly #5b508d ≈ 0.001% of males
Protanopia #005bc3 ≈ 1.01% of males
Deuteranopia #0055bc ≈ 1.27% of males
Tritanopia #3d5f7a ≈ 0.0001% of males
Protanomaly #2b52c1 ≈ 1.08% of males
Deuteranomaly #2d4ebd ≈ 4.63% of males
Tritanomaly #4d559a ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-5f40bf {
  color: #5f40bf;
}
Background
.bg-5f40bf {
  background-color: #5f40bf;
  color: #ffffff;
}
Border
.border-5f40bf {
  border: 2px solid #5f40bf;
}
CSS variables
:root {
  --color-primary: #5f40bf;
  --color-primary-rgb: 95 64 191;
  --color-primary-hsl: 255 50% 50%;
}
Gradient
.gradient-5f40bf {
  background: linear-gradient(135deg, #5f40bf, #9f40bf);
}
Colored shadow
.shadow-5f40bf {
  box-shadow: 0 8px 24px rgb(95 64 191 / 0.35);
}

Ocean Blue
#5f40bf  rgb(95, 64, 191)  hsl(255, 50%, 50%)  Ocean Blue
#a0bf40  rgb(160, 191, 64)  hsl(75, 50%, 50%)  Apple Green
#bf5f40  rgb(191, 95, 64)  hsl(15, 50%, 50%)  Flame
#40bf5f  rgb(64, 191, 95)  hsl(135, 50%, 50%)  Emerald