#2A236D

#2a236d ≈ Midnight Blue

  • blue
  • Lightness: low
  • Saturation: moderate
  • Cool

#2a236d is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 16.47% red, 13.73% green and 42.75% blue; printed in CMYK it uses 61.47% cyan, 67.89% magenta, 0% yellow and 57.25% black. Its hue angle is 245.68°, with 51.39% saturation and 28.24% lightness in HSL. It is a cool color, often associated with trust, stability and focus. Designers typically use it for technology products, finance and banking and luxury branding. White text on this color reaches a contrast ratio of 13.46:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.44.

Description generated from the measured properties of this color.

Conversions of #2a236d 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.028

Readable text 13.46:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.56:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2f2f2f ≈ 0.003% of males
Achromatomaly #2d2a4f ≈ 0.001% of males
Protanopia #00316f ≈ 1.01% of males
Deuteranopia #002c6c ≈ 1.27% of males
Tritanopia #013644 ≈ 0.0001% of males
Protanomaly #0b2c6e ≈ 1.08% of males
Deuteranomaly #07296c ≈ 4.63% of males
Tritanomaly #192f57 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-2a236d {
  color: #2a236d;
}
Background
.bg-2a236d {
  background-color: #2a236d;
  color: #ffffff;
}
Border
.border-2a236d {
  border: 2px solid #2a236d;
}
CSS variables
:root {
  --color-primary: #2a236d;
  --color-primary-rgb: 42 35 109;
  --color-primary-hsl: 246 51% 28%;
}
Gradient
.gradient-2a236d {
  background: linear-gradient(135deg, #2a236d, #4f236d);
}
Colored shadow
.shadow-2a236d {
  box-shadow: 0 8px 24px rgb(42 35 109 / 0.35);
}

Midnight Blue
#2a236d  rgb(42, 35, 109)  hsl(246, 51%, 28%)  Midnight Blue
#666d23  rgb(102, 109, 35)  hsl(66, 51%, 28%)  Dark Olive Green
#6d2a23  rgb(109, 42, 35)  hsl(6, 51%, 28%)  Caput Mortuum
#236d2a  rgb(35, 109, 42)  hsl(126, 51%, 28%)  Pakistan Green