#2F123C

#2f123c ≈ Midnight Blue

  • magenta
  • Lightness: very low
  • Saturation: muted
  • Cool

#2f123c is a color from the magenta family, with very low lightness and muted saturation. In the RGB model it is made of 18.43% red, 7.06% green and 23.53% blue; printed in CMYK it uses 21.67% cyan, 70% magenta, 0% yellow and 76.47% black. Its hue angle is 281.43°, with 53.85% saturation and 15.29% lightness in HSL. It is a cool color, often associated with creativity, boldness and individuality. Designers typically use it for beauty and cosmetics, creative studios and luxury branding. White text on this color reaches a contrast ratio of 16.5:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 13.02.

Description generated from the measured properties of this color.

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

Readable text 16.5:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.27:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #1f1f1f ≈ 0.003% of males
Achromatomaly #261a2d ≈ 0.001% of males
Protanopia #051d3d ≈ 1.01% of males
Deuteranopia #10203b ≈ 1.27% of males
Tritanopia #2e1a24 ≈ 0.0001% of males
Protanomaly #1d193d ≈ 1.08% of males
Deuteranomaly #201b3b ≈ 4.63% of males
Tritanomaly #2e172f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2f123c {
  color: #2f123c;
}
Background
.bg-2f123c {
  background-color: #2f123c;
  color: #ffffff;
}
Border
.border-2f123c {
  border: 2px solid #2f123c;
}
CSS variables
:root {
  --color-primary: #2f123c;
  --color-primary-rgb: 47 18 60;
  --color-primary-hsl: 281 54% 15%;
}
Gradient
.gradient-2f123c {
  background: linear-gradient(135deg, #2f123c, #3c1234);
}
Colored shadow
.shadow-2f123c {
  box-shadow: 0 8px 24px rgb(47 18 60 / 0.35);
}

Midnight Blue
#2f123c  rgb(47, 18, 60)  hsl(281, 54%, 15%)  Midnight Blue
#1f3c12  rgb(31, 60, 18)  hsl(101, 54%, 15%)  British Racing Green
#3c2f12  rgb(60, 47, 18)  hsl(41, 54%, 15%)  Bistre
#123c2f  rgb(18, 60, 47)  hsl(161, 54%, 15%)  Phthalo Green