More
More
#374151 colour
#374151 is a dark greyish sky blue close to CSS darkslategray. RGB 55, 65, 81, HSL 217, 19%, 27%. White text passes AAA (10.31:1), black fails (2.04:1).
- Nearest CSS name
darkslategray#2f4f4f (not an exact match)- Described as
- a dark greyish sky blue
- Red, green, blue
- 55, 65, 81
- Tailwind CSS
gray-700- Web safe
- No
- Luminance
- 0.0519 (WCAG relative luminance, 0 is black, 1 is white)
Colour codes
| HEX | #374151 | |
|---|---|---|
| RGB | rgb(55, 65, 81) | |
| RGB (percent) | rgb(21.6% 25.5% 31.8%) | |
| HSL | hsl(216.9, 19.1%, 26.7%) | |
| HSV / HSB | hsv(216.9, 32.1%, 31.8%) | |
| HWB | hwb(216.9 21.6% 68.2%) | |
| CMYK (naive) | cmyk(32%, 20%, 0%, 68%) | |
| CIELAB (D50) | lab(27.13% -0.95 -11.13) | |
| OKLCH | oklch(37.29% 0.0306 259.73) | |
| Decimal | 3621201 |
CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.
Contrast with white and black text
| Text | Ratio | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White | 10.31:1 | Pass | Pass | Pass | Pass |
| Black | 2.04:1 | Fail | Fail | Fail | Fail |
White text is the better choice on #374151 (10.31:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.
Tints and shades
Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).
Colour harmonies
Hue turned around the HSL colour wheel, saturation and lightness kept.
How it looks with colour blindness
Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.
Tailwind gray scale
CSS
| Text colour | color: #374151; | |
|---|---|---|
| Background | background-color: #374151; | |
| Border | border: 1px solid #374151; | |
| Half transparent | background-color: rgb(55 65 81 / 50%); | |
| Custom property | --colour-main: #374151; | |
| Gradient to a darker shade | background: linear-gradient(135deg, #374151, #212731); | |
| Gradient from a lighter tint | background: linear-gradient(180deg, #878d97, #374151); | |
| Text on this colour | background-color: #374151; color: #fff; |
Similar named colours
darkslategray#2f4f4f, distance 4.7darkslateblue#483d8b, distance 10.7midnightblue#191970, distance 14.2dimgray#696969, distance 15.1rebeccapurple#663399, distance 15.5indigo#4b0082, distance 16.1#514737Complement of #374151
Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.
Convert #374151 to other formats · Build a palette from it · Check contrast · All named colours
Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.