#342B77

#342b77 ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: moderate
  • Cool

#342b77 is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 20.39% red, 16.86% green and 46.67% blue; printed in CMYK it uses 56.3% cyan, 63.87% magenta, 0% yellow and 53.33% black. Its hue angle is 247.11°, with 46.91% saturation and 31.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 corporate identities. White text on this color reaches a contrast ratio of 11.95:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.48.

Description generated from the measured properties of this color.

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

Readable text 11.95:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.76:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #373737 ≈ 0.003% of males
Achromatomaly #363258 ≈ 0.001% of males
Protanopia #003979 ≈ 1.01% of males
Deuteranopia #003475 ≈ 1.27% of males
Tritanopia #163d4c ≈ 0.0001% of males
Protanomaly #193478 ≈ 1.08% of males
Deuteranomaly #173176 ≈ 4.63% of males
Tritanomaly #253760 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-342b77 {
  color: #342b77;
}
Background
.bg-342b77 {
  background-color: #342b77;
  color: #ffffff;
}
Border
.border-342b77 {
  border: 2px solid #342b77;
}
CSS variables
:root {
  --color-primary: #342b77;
  --color-primary-rgb: 52 43 119;
  --color-primary-hsl: 247 47% 32%;
}
Gradient
.gradient-342b77 {
  background: linear-gradient(135deg, #342b77, #5a2b77);
}
Colored shadow
.shadow-342b77 {
  box-shadow: 0 8px 24px rgb(52 43 119 / 0.35);
}

Midnight Blue
#342b77  rgb(52, 43, 119)  hsl(247, 47%, 32%)  Midnight Blue
#6e772b  rgb(110, 119, 43)  hsl(67, 47%, 32%)  Olive
#77342b  rgb(119, 52, 43)  hsl(7, 47%, 32%)  Burnt Umber
#2b7734  rgb(43, 119, 52)  hsl(127, 47%, 32%)  Fern Green