#2F255E

#2f255e ≈ Midnight Blue

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

#2f255e 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.51% green and 36.86% blue; printed in CMYK it uses 50% cyan, 60.64% magenta, 0% yellow and 63.14% black. Its hue angle is 250.53°, with 43.51% saturation and 25.69% 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.57: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 #2f255e 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.0274

Readable text 13.57:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.55:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2e2e2e ≈ 0.003% of males
Achromatomaly #2e2b46 ≈ 0.001% of males
Protanopia #032f60 ≈ 1.01% of males
Deuteranopia #032c5d ≈ 1.27% of males
Tritanopia #20323d ≈ 0.0001% of males
Protanomaly #1c2c5f ≈ 1.08% of males
Deuteranomaly #1c2a5d ≈ 4.63% of males
Tritanomaly #272d4c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f255e {
  color: #2f255e;
}
Background
.bg-2f255e {
  background-color: #2f255e;
  color: #ffffff;
}
Border
.border-2f255e {
  border: 2px solid #2f255e;
}
CSS variables
:root {
  --color-primary: #2f255e;
  --color-primary-rgb: 47 37 94;
  --color-primary-hsl: 251 44% 26%;
}
Gradient
.gradient-2f255e {
  background: linear-gradient(135deg, #2f255e, #4c255e);
}
Colored shadow
.shadow-2f255e {
  box-shadow: 0 8px 24px rgb(47 37 94 / 0.35);
}

Midnight Blue
#2f255e  rgb(47, 37, 94)  hsl(251, 44%, 26%)  Midnight Blue
#545e25  rgb(84, 94, 37)  hsl(71, 44%, 26%)  Army Green
#5e2f25  rgb(94, 47, 37)  hsl(11, 44%, 26%)  Caput Mortuum
#255e2f  rgb(37, 94, 47)  hsl(131, 44%, 26%)  Hunter Green