#5f40bf ≈ Ocean Blue
#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.
| 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 luminance | 0.0986 |
Shades
#5f40bf mixed progressively with black.
Tints
#5f40bf mixed progressively with white.
Tones
#5f40bf mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-5f40bf {
color: #5f40bf;
}
.bg-5f40bf {
background-color: #5f40bf;
color: #ffffff;
}
.border-5f40bf {
border: 2px solid #5f40bf;
}
:root {
--color-primary: #5f40bf;
--color-primary-rgb: 95 64 191;
--color-primary-hsl: 255 50% 50%;
}
.gradient-5f40bf {
background: linear-gradient(135deg, #5f40bf, #9f40bf);
}
.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