#342756

#342756 ≈ Midnight Blue

  • violet
  • Lightness: low
  • Saturation: muted
  • Cool

#342756 is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20.39% red, 15.29% green and 33.73% blue; printed in CMYK it uses 39.53% cyan, 54.65% magenta, 0% yellow and 66.27% black. Its hue angle is 256.6°, with 37.6% saturation and 24.51% lightness in HSL. It is a cool color, often associated with imagination, spirituality and luxury. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 13.37:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 9.45.

Description generated from the measured properties of this color.

Conversions of #342756 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.0285

Readable text 13.37:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.57:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2f2f2f ≈ 0.003% of males
Achromatomaly #312c42 ≈ 0.001% of males
Protanopia #153058 ≈ 1.01% of males
Deuteranopia #182e55 ≈ 1.27% of males
Tritanopia #2c303a ≈ 0.0001% of males
Protanomaly #252c57 ≈ 1.08% of males
Deuteranomaly #262c55 ≈ 4.63% of males
Tritanomaly #2f2d47 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-342756 {
  color: #342756;
}
Background
.bg-342756 {
  background-color: #342756;
  color: #ffffff;
}
Border
.border-342756 {
  border: 2px solid #342756;
}
CSS variables
:root {
  --color-primary: #342756;
  --color-primary-rgb: 52 39 86;
  --color-primary-hsl: 257 38% 25%;
}
Gradient
.gradient-342756 {
  background: linear-gradient(135deg, #342756, #4c2756);
}
Colored shadow
.shadow-342756 {
  box-shadow: 0 8px 24px rgb(52 39 86 / 0.35);
}

Midnight Blue
#342756  rgb(52, 39, 86)  hsl(257, 38%, 25%)  Midnight Blue
#495627  rgb(73, 86, 39)  hsl(77, 38%, 25%)  Army Green
#563427  rgb(86, 52, 39)  hsl(17, 38%, 25%)  Caput Mortuum
#275634  rgb(39, 86, 52)  hsl(137, 38%, 25%)  Hunter Green