#2A42A7

#2a42a7 ≈ Cobalt Blue

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

#2a42a7 is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 16.47% red, 25.88% green and 65.49% blue; printed in CMYK it uses 74.85% cyan, 60.48% magenta, 0% yellow and 34.51% black. Its hue angle is 228.48°, with 59.81% saturation and 40.98% 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.62:1 (WCAG AAA). The closest named color is Cobalt Blue (#0047ab), ΔE 3.62.

Description generated from the measured properties of this color.

Conversions of #2a42a7 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.0718

Readable text 8.62:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.44:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #4c4c4c ≈ 0.003% of males
Achromatomaly #41487b ≈ 0.001% of males
Protanopia #0052aa ≈ 1.01% of males
Deuteranopia #0046a5 ≈ 1.27% of males
Tritanopia #005c6e ≈ 0.0001% of males
Protanomaly #004ca9 ≈ 1.08% of males
Deuteranomaly #0045a6 ≈ 4.63% of males
Tritanomaly #005288 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a42a7 {
  color: #2a42a7;
}
Background
.bg-2a42a7 {
  background-color: #2a42a7;
  color: #ffffff;
}
Border
.border-2a42a7 {
  border: 2px solid #2a42a7;
}
CSS variables
:root {
  --color-primary: #2a42a7;
  --color-primary-rgb: 42 66 167;
  --color-primary-hsl: 228 60% 41%;
}
Gradient
.gradient-2a42a7 {
  background: linear-gradient(135deg, #2a42a7, #502aa7);
}
Colored shadow
.shadow-2a42a7 {
  box-shadow: 0 8px 24px rgb(42 66 167 / 0.35);
}

Cobalt Blue
#2a42a7  rgb(42, 66, 167)  hsl(228, 60%, 41%)  Cobalt Blue
#a78f2a  rgb(167, 143, 42)  hsl(48, 60%, 41%)  Brass
#a72a42  rgb(167, 42, 66)  hsl(348, 60%, 41%)  Vivid Burgundy
#42a72a  rgb(66, 167, 42)  hsl(108, 60%, 41%)  Kelly Green