#334FA5

#334fa5 ≈ Cobalt Blue

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

#334fa5 is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 20% red, 30.98% green and 64.71% blue; printed in CMYK it uses 69.09% cyan, 52.12% magenta, 0% yellow and 35.29% black. Its hue angle is 225.26°, with 52.78% saturation and 42.35% 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.49:1 (WCAG AAA). The closest named color is Cobalt Blue (#0047ab), ΔE 3.72.

Description generated from the measured properties of this color.

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

Readable text 7.49:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.8:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #555555 ≈ 0.003% of males
Achromatomaly #49527d ≈ 0.001% of males
Protanopia #1a5aa8 ≈ 1.01% of males
Deuteranopia #0050a3 ≈ 1.27% of males
Tritanopia #006372 ≈ 0.0001% of males
Protanomaly #2656a7 ≈ 1.08% of males
Deuteranomaly #194fa4 ≈ 4.63% of males
Tritanomaly #005c89 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-334fa5 {
  color: #334fa5;
}
Background
.bg-334fa5 {
  background-color: #334fa5;
  color: #ffffff;
}
Border
.border-334fa5 {
  border: 2px solid #334fa5;
}
CSS variables
:root {
  --color-primary: #334fa5;
  --color-primary-rgb: 51 79 165;
  --color-primary-hsl: 225 53% 42%;
}
Gradient
.gradient-334fa5 {
  background: linear-gradient(135deg, #334fa5, #5033a5);
}
Colored shadow
.shadow-334fa5 {
  box-shadow: 0 8px 24px rgb(51 79 165 / 0.35);
}

Cobalt Blue
#334fa5  rgb(51, 79, 165)  hsl(225, 53%, 42%)  Cobalt Blue
#a58933  rgb(165, 137, 51)  hsl(45, 53%, 42%)  Dark Goldenrod
#a5334f  rgb(165, 51, 79)  hsl(345, 53%, 42%)  Vivid Burgundy
#4fa533  rgb(79, 165, 51)  hsl(105, 53%, 42%)  Kelly Green