AfoliOpen Afoli →

Dark Slate Gray color #2F4F4F

Dark Slate Gray is one of the CSS named colors (keyword darkslategray) with the hex code #2F4F4F — RGB 47, 79, 79, HSL 180°, 25%, 25%.

Open in Afoli Colour tools →

#2F4F4FDark Slate Gray

Color codes

HEX
#2F4F4F
RGB
rgb(47, 79, 79)
HSL
hsl(180, 25%, 25%)
CMYK
41%, 0%, 0%, 69%
OKLCH
oklch(40.3% 0.038 195.8)
CSS keyword
darkslategray

Tints and shades

#D9FEFD#BEE2E2#A4C8C7#8BAEAD#729494#5B7C7C#436464#2D4D4D#173737#022323#000F0F

Color harmonies

Complementary
#2F4F4F#5B4042
Analogous
#354F44#2F4F4F#324D58
Triadic
#2F4F4F#514257#544631
Split complementary
#2F4F4F#58404D#5A4237
Tetradic
#2F4F4F#46465C#5B4042#4B4A32

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Dark Slate Gray text on white8.93 : 190AAA — any text
Dark Slate Gray text on black2.35 : 1-12Fails for text
White text on Dark Slate Gray8.93 : 1-95AAA — any text
Black text on Dark Slate Gray2.35 : 114Fails for text

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Dark Slate Gray?

Dark Slate Gray has the hex code #2F4F4F, which is RGB 47, 79, 79 and HSL 180°, 25%, 25%.

Which text color reads best on Dark Slate Gray?

White text: contrast 8.93 : 1 (black text: 2.35 : 1).

Which colors go well with Dark Slate Gray?

Its complementary color is #5B4042; analogous colors are #354F44 and #324D58; a triadic set adds #514257 and #544631.

Similar colors

Sources and licences

Updated November 21, 2026