#2F245D

#2f245d ≈ Midnight Blue

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

#2f245d is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 18.43% red, 14.12% green and 36.47% blue; printed in CMYK it uses 49.46% cyan, 61.29% magenta, 0% yellow and 63.53% black. Its hue angle is 251.58°, with 44.19% saturation and 25.29% 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.71:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.64.

Description generated from the measured properties of this color.

Conversions of #2f245d 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.0266

Readable text 13.71:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.53:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2d2d2d ≈ 0.003% of males
Achromatomaly #2e2a45 ≈ 0.001% of males
Protanopia #022f5f ≈ 1.01% of males
Deuteranopia #022c5c ≈ 1.27% of males
Tritanopia #20313c ≈ 0.0001% of males
Protanomaly #1c2b5e ≈ 1.08% of males
Deuteranomaly #1c295c ≈ 4.63% of males
Tritanomaly #272c4b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f245d {
  color: #2f245d;
}
Background
.bg-2f245d {
  background-color: #2f245d;
  color: #ffffff;
}
Border
.border-2f245d {
  border: 2px solid #2f245d;
}
CSS variables
:root {
  --color-primary: #2f245d;
  --color-primary-rgb: 47 36 93;
  --color-primary-hsl: 252 44% 25%;
}
Gradient
.gradient-2f245d {
  background: linear-gradient(135deg, #2f245d, #4b245d);
}
Colored shadow
.shadow-2f245d {
  box-shadow: 0 8px 24px rgb(47 36 93 / 0.35);
}

Midnight Blue
#2f245d  rgb(47, 36, 93)  hsl(252, 44%, 25%)  Midnight Blue
#525d24  rgb(82, 93, 36)  hsl(72, 44%, 25%)  Army Green
#5d2f24  rgb(93, 47, 36)  hsl(12, 44%, 25%)  Caput Mortuum
#245d2f  rgb(36, 93, 47)  hsl(132, 44%, 25%)  Hunter Green