#304DA2

#304da2 ≈ Cobalt Blue

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

#304da2 is a color from the blue family, with medium lightness and moderate saturation. In the RGB model it is made of 18.82% red, 30.2% green and 63.53% blue; printed in CMYK it uses 70.37% cyan, 52.47% magenta, 0% yellow and 36.47% black. Its hue angle is 224.74°, with 54.29% saturation and 41.18% 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.75:1 (WCAG AAA). The closest named color is Cobalt Blue (#0047ab), ΔE 3.27.

Description generated from the measured properties of this color.

Conversions of #304da2 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.0854

Readable text 7.75:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.71:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #535353 ≈ 0.003% of males
Achromatomaly #47507a ≈ 0.001% of males
Protanopia #1758a5 ≈ 1.01% of males
Deuteranopia #004ea0 ≈ 1.27% of males
Tritanopia #006170 ≈ 0.0001% of males
Protanomaly #2354a4 ≈ 1.08% of males
Deuteranomaly #144da1 ≈ 4.63% of males
Tritanomaly #005a87 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-304da2 {
  color: #304da2;
}
Background
.bg-304da2 {
  background-color: #304da2;
  color: #ffffff;
}
Border
.border-304da2 {
  border: 2px solid #304da2;
}
CSS variables
:root {
  --color-primary: #304da2;
  --color-primary-rgb: 48 77 162;
  --color-primary-hsl: 225 54% 41%;
}
Gradient
.gradient-304da2 {
  background: linear-gradient(135deg, #304da2, #4c30a2);
}
Colored shadow
.shadow-304da2 {
  box-shadow: 0 8px 24px rgb(48 77 162 / 0.35);
}

Cobalt Blue
#304da2  rgb(48, 77, 162)  hsl(225, 54%, 41%)  Cobalt Blue
#a28530  rgb(162, 133, 48)  hsl(45, 54%, 41%)  Dark Goldenrod
#a2304d  rgb(162, 48, 77)  hsl(345, 54%, 41%)  Vivid Burgundy
#4da230  rgb(77, 162, 48)  hsl(105, 54%, 41%)  Kelly Green