#3940cf ≈ Ocean Blue
#3940cf is a color from the blue family, with medium lightness and strong saturation. In the RGB model it is made of 22.35% red, 25.1% green and 81.18% blue; printed in CMYK it uses 72.46% cyan, 69.08% magenta, 0% yellow and 18.82% black. Its hue angle is 237.2°, with 60.98% saturation and 51.76% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and brand accents. White text on this color reaches a contrast ratio of 7.48:1 (WCAG AAA). The closest named color is Ocean Blue (#4f42b5), ΔE 4.19.
Description generated from the measured properties of this color.
| HEX | |
|---|---|
| RGB | |
| RGB percent | |
| CMY | |
| CMYK | |
| HSL | |
| HSV / HSB | |
| Web safe | #3333cc |
| CIE-LAB | |
| XYZ | |
| xyY | |
| CIE-LCH | |
| CIE-LUV | |
| Hunter-Lab | |
| OKLab | |
| Binary | |
| Decimal | |
| Relative luminance | 0.0904 |
Shades
#3940cf mixed progressively with black.
Tints
#3940cf mixed progressively with white.
Tones
#3940cf mixed progressively with gray.
Text in this color
Background in this color
Border in this color
.text-3940cf {
color: #3940cf;
}
.bg-3940cf {
background-color: #3940cf;
color: #ffffff;
}
.border-3940cf {
border: 2px solid #3940cf;
}
:root {
--color-primary: #3940cf;
--color-primary-rgb: 57 64 207;
--color-primary-hsl: 237 61% 52%;
}
.gradient-3940cf {
background: linear-gradient(135deg, #3940cf, #7d39cf);
}
.shadow-3940cf {
box-shadow: 0 8px 24px rgb(57 64 207 / 0.35);
}
Ocean Blue
#3940cf rgb(57, 64, 207) hsl(237, 61%, 52%) Ocean Blue
#cfc839 rgb(207, 200, 57) hsl(57, 61%, 52%) Citrine
#cf3940 rgb(207, 57, 64) hsl(357, 61%, 52%) Persian Red
#40cf39 rgb(64, 207, 57) hsl(117, 61%, 52%) Lime Green