#2F165B

#2f165b ≈ Midnight Blue

  • violet
  • Lightness: low
  • Saturation: moderate
  • Cool

#2f165b is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 18.43% red, 8.63% green and 35.69% blue; printed in CMYK it uses 48.35% cyan, 75.82% magenta, 0% yellow and 64.31% black. Its hue angle is 261.74°, with 61.06% saturation and 22.16% 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 15.14:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 5.79.

Description generated from the measured properties of this color.

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

Readable text 15.14:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.39:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #262626 ≈ 0.003% of males
Achromatomaly #2a2041 ≈ 0.001% of males
Protanopia #00275d ≈ 1.01% of males
Deuteranopia #00255a ≈ 1.27% of males
Tritanopia #222736 ≈ 0.0001% of males
Protanomaly #12215c ≈ 1.08% of males
Deuteranomaly #15205a ≈ 4.63% of males
Tritanomaly #282248 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#2f165b  rgb(47, 22, 91)  hsl(262, 61%, 22%)  Midnight Blue
#425b16  rgb(66, 91, 22)  hsl(82, 61%, 22%)  Army Green
#5b2f16  rgb(91, 47, 22)  hsl(22, 61%, 22%)  Caput Mortuum
#165b2f  rgb(22, 91, 47)  hsl(142, 61%, 22%)  Hunter Green