#021E6D

#021e6d ≈ Midnight Blue

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

#021e6d is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 11.76% green and 42.75% blue; printed in CMYK it uses 98.17% cyan, 72.48% magenta, 0% yellow and 57.25% black. Its hue angle is 224.3°, with 96.4% saturation and 21.76% 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 14.9:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.

Description generated from the measured properties of this color.

Conversions of #021e6d into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#003366
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.0205

Readable text 14.9:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.41:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #272727 ≈ 0.003% of males
Achromatomaly #1d244d ≈ 0.001% of males
Protanopia #002c6f ≈ 1.01% of males
Deuteranopia #00226c ≈ 1.27% of males
Tritanopia #003443 ≈ 0.0001% of males
Protanomaly #00276e ≈ 1.08% of males
Deuteranomaly #00216c ≈ 4.63% of males
Tritanomaly #002d57 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-021e6d {
  color: #021e6d;
}
Background
.bg-021e6d {
  background-color: #021e6d;
  color: #ffffff;
}
Border
.border-021e6d {
  border: 2px solid #021e6d;
}
CSS variables
:root {
  --color-primary: #021e6d;
  --color-primary-rgb: 2 30 109;
  --color-primary-hsl: 224 96% 22%;
}
Gradient
.gradient-021e6d {
  background: linear-gradient(135deg, #021e6d, #1b026d);
}
Colored shadow
.shadow-021e6d {
  box-shadow: 0 8px 24px rgb(2 30 109 / 0.35);
}

Midnight Blue
#021e6d  rgb(2, 30, 109)  hsl(224, 96%, 22%)  Midnight Blue
#6d5102  rgb(109, 81, 2)  hsl(44, 96%, 22%)  Field Drab
#6d021e  rgb(109, 2, 30)  hsl(344, 96%, 22%)  Burgundy
#1e6d02  rgb(30, 109, 2)  hsl(104, 96%, 22%)  Pakistan Green