#021F6F

#021f6f ≈ Midnight Blue

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

#021f6f is a color from the blue family, with low lightness and moderate saturation. In the RGB model it is made of 0.78% red, 12.16% green and 43.53% blue; printed in CMYK it uses 98.2% cyan, 72.07% magenta, 0% yellow and 56.47% black. Its hue angle is 224.04°, with 96.46% saturation and 22.16% 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.7:1 (WCAG AAA). The closest named color is Midnight Blue (#191970), ΔE 3.11.

Description generated from the measured properties of this color.

Conversions of #021f6f 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.0214

Readable text 14.7:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 1.43:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #282828 ≈ 0.003% of males
Achromatomaly #1e254e ≈ 0.001% of males
Protanopia #002d71 ≈ 1.01% of males
Deuteranopia #00236e ≈ 1.27% of males
Tritanopia #003544 ≈ 0.0001% of males
Protanomaly #002870 ≈ 1.08% of males
Deuteranomaly #00226e ≈ 4.63% of males
Tritanomaly #002e58 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Midnight Blue
#021f6f  rgb(2, 31, 111)  hsl(224, 96%, 22%)  Midnight Blue
#6f5202  rgb(111, 82, 2)  hsl(44, 96%, 22%)  Field Drab
#6f021f  rgb(111, 2, 31)  hsl(344, 96%, 22%)  Burgundy
#1f6f02  rgb(31, 111, 2)  hsl(104, 96%, 22%)  Pakistan Green