#2B1A68

#2b1a68 ≈ Midnight Blue

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

#2b1a68 is a color from the violet family, with low lightness and moderate saturation. In the RGB model it is made of 16.86% red, 10.2% green and 40.78% blue; printed in CMYK it uses 58.65% cyan, 75% magenta, 0% yellow and 59.22% black. Its hue angle is 253.08°, with 60% saturation and 25.49% 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 14.48:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.08.

Description generated from the measured properties of this color.

Conversions of #2b1a68 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.0225

Readable text 14.48:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.45:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #292929 ≈ 0.003% of males
Achromatomaly #2a244a ≈ 0.001% of males
Protanopia #002b6a ≈ 1.01% of males
Deuteranopia #002767 ≈ 1.27% of males
Tritanopia #0f2f3f ≈ 0.0001% of males
Protanomaly #052569 ≈ 1.08% of males
Deuteranomaly #052267 ≈ 4.63% of males
Tritanomaly #1d2852 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2b1a68 {
  color: #2b1a68;
}
Background
.bg-2b1a68 {
  background-color: #2b1a68;
  color: #ffffff;
}
Border
.border-2b1a68 {
  border: 2px solid #2b1a68;
}
CSS variables
:root {
  --color-primary: #2b1a68;
  --color-primary-rgb: 43 26 104;
  --color-primary-hsl: 253 60% 25%;
}
Gradient
.gradient-2b1a68 {
  background: linear-gradient(135deg, #2b1a68, #521a68);
}
Colored shadow
.shadow-2b1a68 {
  box-shadow: 0 8px 24px rgb(43 26 104 / 0.35);
}

Midnight Blue
#2b1a68  rgb(43, 26, 104)  hsl(253, 60%, 25%)  Midnight Blue
#57681a  rgb(87, 104, 26)  hsl(73, 60%, 25%)  Dark Olive Green
#682b1a  rgb(104, 43, 26)  hsl(13, 60%, 25%)  Caput Mortuum
#1a682b  rgb(26, 104, 43)  hsl(133, 60%, 25%)  Cadmium Green