#2D154B

#2d154b ≈ Midnight Blue

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

#2d154b 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.41% blue; printed in CMYK it uses 40% cyan, 72% magenta, 0% yellow and 70.59% black. Its hue angle is 266.67°, with 56.25% saturation and 18.82% 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.9:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 8.87.

Description generated from the measured properties of this color.

Conversions of #2d154b 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.016

Readable text 15.9: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 #271d37 ≈ 0.001% of males
Protanopia #00224d ≈ 1.01% of males
Deuteranopia #00224a ≈ 1.27% of males
Tritanopia #26212d ≈ 0.0001% of males
Protanomaly #181d4c ≈ 1.08% of males
Deuteranomaly #1a1d4a ≈ 4.63% of males
Tritanomaly #291d3b ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#2d154b  rgb(45, 21, 75)  hsl(267, 56%, 19%)  Midnight Blue
#334b15  rgb(51, 75, 21)  hsl(87, 56%, 19%)  Army Green
#4b2d15  rgb(75, 45, 21)  hsl(27, 56%, 19%)  Bistre
#154b2d  rgb(21, 75, 45)  hsl(147, 56%, 19%)  British Racing Green