#2D154C

#2d154c ≈ Midnight Blue

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

#2d154c is a color from the violet family, with very low lightness and muted saturation. In the RGB model it is made of 17.65% red, 8.24% green and 29.8% blue; printed in CMYK it uses 40.79% cyan, 72.37% magenta, 0% yellow and 70.2% black. Its hue angle is 266.18°, with 56.7% saturation and 19.02% 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.87:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.63.

Description generated from the measured properties of this color.

Conversions of #2d154c 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.0162

Readable text 15.87:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.32:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #222222 ≈ 0.003% of males
Achromatomaly #271e37 ≈ 0.001% of males
Protanopia #00224e ≈ 1.01% of males
Deuteranopia #00224b ≈ 1.27% of males
Tritanopia #26212e ≈ 0.0001% of males
Protanomaly #171e4d ≈ 1.08% of males
Deuteranomaly #1a1d4b ≈ 4.63% of males
Tritanomaly #291d3c ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2d154c {
  color: #2d154c;
}
Background
.bg-2d154c {
  background-color: #2d154c;
  color: #ffffff;
}
Border
.border-2d154c {
  border: 2px solid #2d154c;
}
CSS variables
:root {
  --color-primary: #2d154c;
  --color-primary-rgb: 45 21 76;
  --color-primary-hsl: 266 57% 19%;
}
Gradient
.gradient-2d154c {
  background: linear-gradient(135deg, #2d154c, #48154c);
}
Colored shadow
.shadow-2d154c {
  box-shadow: 0 8px 24px rgb(45 21 76 / 0.35);
}

Midnight Blue
#2d154c  rgb(45, 21, 76)  hsl(266, 57%, 19%)  Midnight Blue
#344c15  rgb(52, 76, 21)  hsl(86, 57%, 19%)  Army Green
#4c2d15  rgb(76, 45, 21)  hsl(26, 57%, 19%)  Bistre
#154c2d  rgb(21, 76, 45)  hsl(146, 57%, 19%)  British Racing Green