#404040
Tailwind neutral-700
#404040 is a grey colour. In RGB it is 64 red, 64 green and 64 blue, which converts to a hue of 0 degrees, 0% saturation and 25% lightness. It is Tailwind neutral-700 in that design system's palette.
Color values
| HEX | #404040 |
|---|---|
| RGB | rgb(64, 64, 64) |
| HSL | hsl(0, 0%, 25%) |
| HSV | hsv(0, 0%, 25%) |
| CMYK | cmyk(0%, 0%, 0%, 75%) |
Contrast and accessibility
Against white the contrast ratio is 10.37:1, and against black it is 2.03:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.
| Background | Ratio | Normal text | Large text |
|---|---|---|---|
| White | 10.37:1 | AAA | AAA |
| Black | 2.03:1 | Fail | Fail |
Tints and shades
Lighter tints move #404040 toward white, and darker shades move it toward black.
Tints
Shades
Color harmonies
Complementary
Analogous
Triadic
Split complementary
Code
| CSS | color: #404040; |
|---|---|
| CSS rgb() | color: rgb(64 64 64); |
| Tailwind | bg-[#404040] |
| SwiftUI | Color(red: 0.251, green: 0.251, blue: 0.251) |
| Android | Color.parseColor("#404040") |
Closest named color
The nearest CSS colour keyword to #404040 is darkslategray (#2F4F4F).