#342147

#342147 ≈ Midnight Blue

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

#342147 is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 20.39% red, 12.94% green and 27.84% blue; printed in CMYK it uses 26.76% cyan, 53.52% magenta, 0% yellow and 72.16% black. Its hue angle is 270°, with 36.54% saturation and 20.39% 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 14.44:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 12.42.

Description generated from the measured properties of this color.

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

Readable text 14.44:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.45:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2a2a2a ≈ 0.003% of males
Achromatomaly #2e2637 ≈ 0.001% of males
Protanopia #172948 ≈ 1.01% of males
Deuteranopia #1c2a46 ≈ 1.27% of males
Tritanopia #312830 ≈ 0.0001% of males
Protanomaly #252648 ≈ 1.08% of males
Deuteranomaly #272646 ≈ 4.63% of males
Tritanomaly #32253b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-342147 {
  color: #342147;
}
Background
.bg-342147 {
  background-color: #342147;
  color: #ffffff;
}
Border
.border-342147 {
  border: 2px solid #342147;
}
CSS variables
:root {
  --color-primary: #342147;
  --color-primary-rgb: 52 33 71;
  --color-primary-hsl: 270 37% 20%;
}
Gradient
.gradient-342147 {
  background: linear-gradient(135deg, #342147, #472147);
}
Colored shadow
.shadow-342147 {
  box-shadow: 0 8px 24px rgb(52 33 71 / 0.35);
}

Midnight Blue
#342147  rgb(52, 33, 71)  hsl(270, 37%, 20%)  Midnight Blue
#344721  rgb(52, 71, 33)  hsl(90, 37%, 20%)  Army Green
#473421  rgb(71, 52, 33)  hsl(30, 37%, 20%)  Bistre
#214734  rgb(33, 71, 52)  hsl(150, 37%, 20%)  British Racing Green