#2F215B

#2f215b ≈ Midnight Blue

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

#2f215b is a color from the violet family, with low lightness and muted saturation. In the RGB model it is made of 18.43% red, 12.94% green and 35.69% blue; printed in CMYK it uses 48.35% cyan, 63.74% magenta, 0% yellow and 64.31% black. Its hue angle is 254.48°, with 46.77% saturation and 24.31% 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.1:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 6.53.

Description generated from the measured properties of this color.

Conversions of #2f215b 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.0245

Readable text 14.1:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.49:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2b2b2b ≈ 0.003% of males
Achromatomaly #2d2843 ≈ 0.001% of males
Protanopia #002c5d ≈ 1.01% of males
Deuteranopia #002a5a ≈ 1.27% of males
Tritanopia #222e3a ≈ 0.0001% of males
Protanomaly #1b285c ≈ 1.08% of males
Deuteranomaly #1b275a ≈ 4.63% of males
Tritanomaly #282949 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f215b {
  color: #2f215b;
}
Background
.bg-2f215b {
  background-color: #2f215b;
  color: #ffffff;
}
Border
.border-2f215b {
  border: 2px solid #2f215b;
}
CSS variables
:root {
  --color-primary: #2f215b;
  --color-primary-rgb: 47 33 91;
  --color-primary-hsl: 254 47% 24%;
}
Gradient
.gradient-2f215b {
  background: linear-gradient(135deg, #2f215b, #4c215b);
}
Colored shadow
.shadow-2f215b {
  box-shadow: 0 8px 24px rgb(47 33 91 / 0.35);
}

Midnight Blue
#2f215b  rgb(47, 33, 91)  hsl(254, 47%, 24%)  Midnight Blue
#4d5b21  rgb(77, 91, 33)  hsl(74, 47%, 24%)  Army Green
#5b2f21  rgb(91, 47, 33)  hsl(14, 47%, 24%)  Caput Mortuum
#215b2f  rgb(33, 91, 47)  hsl(134, 47%, 24%)  Hunter Green