#40403F

#40403f ≈ Onyx

  • gray
  • Lightness: low
  • Saturation: almost no
  • Neutral

#40403f is a color from the gray family, with low lightness and almost no saturation. In the RGB model it is made of 25.1% red, 25.1% green and 24.71% blue; printed in CMYK it uses 0% cyan, 0% magenta, 1.56% yellow and 74.9% black. Its hue angle is 60°, with 0.79% saturation and 24.9% lightness in HSL. It is a neutral color, often associated with neutrality, balance and professionalism. Designers typically use it for body text and typography and corporate identities. White text on this color reaches a contrast ratio of 10.38:1 (WCAG AAA). The closest named color is Onyx (#353839), ΔE 3.43.

Description generated from the measured properties of this color.

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

Readable text 10.38:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓
Readable text 2.02:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕

Achromatopsia #404040 ≈ 0.003% of males
Achromatomaly #404040 ≈ 0.001% of males
Protanopia #40403f ≈ 1.01% of males
Deuteranopia #40403f ≈ 1.27% of males
Tritanopia #404040 ≈ 0.0001% of males
Protanomaly #40403f ≈ 1.08% of males
Deuteranomaly #40403f ≈ 4.63% of males
Tritanomaly #40403f ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-40403f {
  color: #40403f;
}
Background
.bg-40403f {
  background-color: #40403f;
  color: #ffffff;
}
Border
.border-40403f {
  border: 2px solid #40403f;
}
CSS variables
:root {
  --color-primary: #40403f;
  --color-primary-rgb: 64 64 63;
  --color-primary-hsl: 60 1% 25%;
}
Gradient
.gradient-40403f {
  background: linear-gradient(135deg, #40403f, #3f403f);
}
Colored shadow
.shadow-40403f {
  box-shadow: 0 8px 24px rgb(64 64 63 / 0.35);
}

Onyx
#40403f  rgb(64, 64, 63)  hsl(60, 1%, 25%)  Onyx
#3f3f40  rgb(63, 63, 64)  hsl(240, 1%, 25%)  Onyx
#3f4040  rgb(63, 64, 64)  hsl(180, 1%, 25%)  Onyx
#403f40  rgb(64, 63, 64)  hsl(300, 1%, 25%)  Onyx