#3940AB

#3940ab ≈ Persian Blue

  • blue
  • Lightness: medium
  • Saturation: moderate
  • Cool

#3940ab is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 22.35% red, 25.1% green and 67.06% blue; printed in CMYK it uses 66.67% cyan, 62.57% magenta, 0% yellow and 32.94% black. Its hue angle is 236.32°, with 50% saturation and 44.71% 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 8.42:1 (WCAG AAA). The closest named color is Persian Blue (#1c39bb), ΔE 3.43.

Description generated from the measured properties of this color.

Conversions of #3940ab into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#333399
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0748

Readable text 8.42:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.5:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4d4d4d ≈ 0.003% of males
Achromatomaly #46487e ≈ 0.001% of males
Protanopia #0052ae ≈ 1.01% of males
Deuteranopia #0048a9 ≈ 1.27% of males
Tritanopia #005b6f ≈ 0.0001% of males
Protanomaly #084cad ≈ 1.08% of males
Deuteranomaly #0045aa ≈ 4.63% of males
Tritanomaly #04518b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-3940ab {
  color: #3940ab;
}
Background
.bg-3940ab {
  background-color: #3940ab;
  color: #ffffff;
}
Border
.border-3940ab {
  border: 2px solid #3940ab;
}
CSS variables
:root {
  --color-primary: #3940ab;
  --color-primary-rgb: 57 64 171;
  --color-primary-hsl: 236 50% 45%;
}
Gradient
.gradient-3940ab {
  background: linear-gradient(135deg, #3940ab, #6b39ab);
}
Colored shadow
.shadow-3940ab {
  box-shadow: 0 8px 24px rgb(57 64 171 / 0.35);
}

Persian Blue
#3940ab  rgb(57, 64, 171)  hsl(236, 50%, 45%)  Persian Blue
#aba439  rgb(171, 164, 57)  hsl(56, 50%, 45%)  Brass
#ab3940  rgb(171, 57, 64)  hsl(356, 50%, 45%)  Cardinal
#40ab39  rgb(64, 171, 57)  hsl(116, 50%, 45%)  Kelly Green