CSS named color
DarkSlateGray #2F4F4F
DarkSlateGray is a dark muted cyan with the hex code #2F4F4F, which converts to rgb(47, 79, 79). The British spelling darkslategrey is an alias and renders exactly the same color. Open #2F4F4F in the converter to tweak it.
DarkSlateGray color values
| HEX | #2F4F4F |
|---|---|
| HEX (shorthand) | — |
| RGB | rgb(47, 79, 79) |
| RGBA | rgba(47, 79, 79, 1) |
| 8-digit HEX | #2F4F4FFF |
| HSL | hsl(180, 25%, 25%) |
| HSV / HSB | 180°, 41%, 31% |
| CMYK | 41%, 0%, 0%, 69% |
| RGB 0–1 | 0.184, 0.31, 0.31 |
| Decimal | 3100495 |
| CSS keyword | darkslategray |
How #2F4F4F converts to RGB
Split the hex code into three pairs and read each pair as a base-16 number: 2F → 47, 4F → 79, 4F → 79. That gives rgb(47, 79, 79). The step-by-step guide explains the math.
Shades of DarkSlateGray
Mixed toward black in 10% steps. Click a swatch to copy its hex.
Tints of DarkSlateGray
Mixed toward white in 10% steps.
Color harmonies
Hue rotations of DarkSlateGray on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.
Complementary
Analogous
Split-complementary
Triadic
Tetradic (square)
Contrast and accessibility
| Text | Background | Ratio | WCAG 2.x |
|---|---|---|---|
| White | DarkSlateGray | 8.92:1 | AAA |
| Black | DarkSlateGray | 2.35:1 | Fail |
Use white text on a darkslategray background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.
Use DarkSlateGray in CSS
.element {
color: darkslategray; /* keyword */
background-color: #2F4F4F; /* hex */
border-color: rgb(47 79 79 / 50%); /* 50% transparent */
}
Need it semi-transparent? Append an alpha byte: #2F4F4F80 is DarkSlateGray at 50% opacity. See RGBA & transparency.
Similar named colors
FAQ
What is the HEX code for DarkSlateGray?
The CSS named color darkslategray is #2F4F4F in hexadecimal. In CSS you can write color: darkslategray; or color: #2F4F4F; — both produce the same pixel.
What is DarkSlateGray in RGB?
DarkSlateGray is rgb(47, 79, 79): red 47, green 79, blue 79 on the 0–255 scale. As normalized 0–1 floats that is (0.184, 0.31, 0.31).
Is white or black text more readable on DarkSlateGray?
White text is more readable. White on #2F4F4F has a contrast ratio of 8.92:1 (AAA), black on #2F4F4F has 2.35:1 (Fail). WCAG AA needs 4.5:1 for normal text.