#3940CF

#3940cf ≈ Ocean Blue

  • blue
  • Lightness: medium
  • Saturation: strong
  • Cool

#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.

Conversions of #3940cf into other color spaces
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 luminance0.0904

Readable text 7.48:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.81:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #555555 ≈ 0.003% of males
Achromatomaly #4b4d96 ≈ 0.001% of males
Protanopia #005cd3 ≈ 1.01% of males
Deuteranopia #004ecc ≈ 1.27% of males
Tritanopia #006783 ≈ 0.0001% of males
Protanomaly #0052d2 ≈ 1.08% of males
Deuteranomaly #0049cd ≈ 4.63% of males
Tritanomaly #005aa7 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-3940cf {
  color: #3940cf;
}
Background
.bg-3940cf {
  background-color: #3940cf;
  color: #ffffff;
}
Border
.border-3940cf {
  border: 2px solid #3940cf;
}
CSS variables
:root {
  --color-primary: #3940cf;
  --color-primary-rgb: 57 64 207;
  --color-primary-hsl: 237 61% 52%;
}
Gradient
.gradient-3940cf {
  background: linear-gradient(135deg, #3940cf, #7d39cf);
}
Colored shadow
.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