#2A236A

#2a236a ≈ Midnight Blue

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

#2a236a 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 41.57% blue; printed in CMYK it uses 60.38% cyan, 66.98% magenta, 0% yellow and 58.43% black. Its hue angle is 245.92°, with 50.35% saturation and 27.65% 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.57:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.77.

Description generated from the measured properties of this color.

Conversions of #2a236a 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.0273

Readable text 13.57:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.55:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #2e2e2e ≈ 0.003% of males
Achromatomaly #2c2a4d ≈ 0.001% of males
Protanopia #00316c ≈ 1.01% of males
Deuteranopia #002b69 ≈ 1.27% of males
Tritanopia #073543 ≈ 0.0001% of males
Protanomaly #0e2c6b ≈ 1.08% of males
Deuteranomaly #0b2869 ≈ 4.63% of males
Tritanomaly #1a2e55 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#2a236a  rgb(42, 35, 106)  hsl(246, 50%, 28%)  Midnight Blue
#636a23  rgb(99, 106, 35)  hsl(66, 50%, 28%)  Dark Olive Green
#6a2a23  rgb(106, 42, 35)  hsl(6, 50%, 28%)  Caput Mortuum
#236a2a  rgb(35, 106, 42)  hsl(126, 50%, 28%)  Cadmium Green