Dark Slate Gray Color (#2F4F4F)

#2F4F4Frgb(47, 79, 79)

Dark Slate Gray is a CSS named color defined as hex code #2F4F4F. Dark Slate Gray is a very dark gray with a subtle teal tint (hue 180°, saturation 25%). It is softer than black.

Color Overview & Formats

CSS: darkslategrayLuminance: 0.0676
HEX
#2F4F4F
RGB
rgb(47, 79, 79)
HSL
hsl(180, 25%, 25%)
Dark Slate Gray (#2F4F4F) Color Format Conversions
FormatSyntax / ValuesNotesAction
HEX#2F4F4F6-digit hex web code
RGBrgb(47, 79, 79)Red, Green, Blue channels (0-255)
HSLhsl(180, 25%, 25%)Hue (180°), Saturation (25%), Lightness (25%)
HSV / HSBhsv(180, 41%, 31%)Hue, Saturation (41%), Value/Brightness (31%)
CMYKcmyk(41%, 0%, 0%, 69%)Digital mathematical approximation (non-print)
OKLCHoklch(0.403 0.038 195.8)Perceptually uniform color space (CSS Color 4 approximation)
CSS Implementation & Quick Steps
background-color: #2F4F4F; /* or darkslategray */
  1. Select color format: Choose the desired format (HEX #2F4F4F, RGB, or HSL).
  2. Copy the code: Click the copy button or press Tab+Enter to store in clipboard.
  3. Pair with white text: White text on Dark Slate Gray reaches 8.93:1 (WCAG AAA).

What Colors Go With Dark Slate Gray?

These 6 colors all go well with Dark Slate Gray (#2F4F4F), and each one is a standard CSS named color. The ratio is the WCAG 2.2 contrast of that color on Dark Slate Gray: at 4.5:1 or above it works for text; below that, use it for backgrounds and accents.

White

#FFFFFF
8.93:1Text-safe

The natural text color on dark slate gray.

Ivory

#FFFFF0
8.85:1Text-safe

A softer, warmer alternative to white text.

White Smoke

#F5F5F5
8.19:1Text-safe

A soft off-white for text and backgrounds.

Gold

#FFD700
6.37:1Text-safe

A warm accent for headings and icons.

Light Gray

#D3D3D3
5.96:1Text-safe

A tonal light gray for secondary text and dividers.

Wheat

#F5DEB3
6.79:1Text-safe

A warm beige that balances the cool teal tint.

Harmonious Palettes & Tints

The palettes below are algorithmically generated across standard intervals based on Dark Slate Gray (HSL 180°). Each group offers full palette copy and live preview:

Complementary Harmony

Hue rotated 180 degrees on the HSL wheel (180° to 0°), keeping the original saturation and lightness.

Dark Slate Gray
#2F4F4F
Complement (0°)
#4F2F2F
Live UI Component Mockup
Component Header SampleWhite text on Dark Slate Gray: 8.93:1 (WCAG AAA).
Button style preview

Analogous Harmony

Hues 30 degrees either side (150° and 210°), keeping the original saturation and lightness.

Analogous (150°)
#2F4F3F
Dark Slate Gray
#2F4F4F
Analogous (210°)
#2F3F4F
Live UI Component Mockup
Component Header SampleWhite text on Dark Slate Gray: 8.93:1 (WCAG AAA).
Button style preview

Triadic Harmony

Hues spaced evenly by 120 degrees (300° and 60°), keeping the original saturation and lightness.

Dark Slate Gray
#2F4F4F
Triadic (300°)
#4F2F4F
Triadic (60°)
#4F4F2F
Live UI Component Mockup
Component Header SampleWhite text on Dark Slate Gray: 8.93:1 (WCAG AAA).
Button style preview

Tints & Shades

Mixed with white (tints) and black (shades) in sRGB at 60% and 30%.

Tint 60%
#ACB9B9
Tint 30%
#6D8484
Dark Slate Gray
#2F4F4F
Shade 30%
#213737
Shade 60%
#132020
Live UI Component Mockup
Component Header SampleWhite text on Dark Slate Gray: 8.93:1 (WCAG AAA).
Button style preview

WCAG 2.2 Text Readability & Contrast Check

Under WCAG 2.2 criteria, regular body text requires at least 4.5:1 (AA) and large text requires at least 3.0:1. The table below displays calculated contrast ratios:

Text Contrast Ratios on Dark Slate Gray (#2F4F4F)
Foreground ColorContrast RatioNormal Text (AA)Large Text (AA)Normal Text AAA (>= 7.0:1)
Pure Black (#000000)
2.35:1FailFailFail
Pure White (#FFFFFF)
8.93:1PassPassPass
Dark Charcoal (#212529)
1.73:1FailFailFail
Mid Gray (#666666)
1.55:1FailFailFail

Interactive Contrast Tester

Enter text foreground and background colors to verify WCAG legibility:

Calculated Ratio:
8.93:1
Normal: Pass AAALarge: Pass AAA
Large Heading Sample (18pt Bold)

This is sample body text rendered directly to verify contrast and readability.

Dark Slate Gray Background Download

Download standard 1920x1080 solid desktop wallpaper or generate mobile wallpaper:

Dark Slate Gray 1920x1080 solid color background wallpaper previewStandard Wallpaper: 1920x1080 PNG (#2F4F4F)

Download Options

All wallpaper files precisely match the W3C standard color value:

Download 1920x1080 PNG

CSS Standard & Usage Notes

darkslategray = #2f4f4f (rgb(47, 79, 79))
W3C CSS Color 4

UI Design & Accessibility Guidelines

Use it for body text, headers, footers and dark themes as a softer alternative to black. On Dark Slate Gray, white text passes WCAG AAA at every size (8.93:1); black text fails even for large text (2.35:1).

Published: · Modified: · Editorial: SwatchAtlas Editorial Team

Frequently Asked Questions (FAQ)

Can I use black text on Dark Slate Gray?

No. Black text on Dark Slate Gray has a WCAG 2.2 contrast ratio of only 2.35:1, below the 3:1 minimum even for large text.

Can I use white text on Dark Slate Gray?

Yes. White text on Dark Slate Gray has a WCAG 2.2 contrast ratio of 8.93:1, passing both AA (4.5:1) and AAA (7:1) at every text size.

What colors go with Dark Slate Gray?

White, Ivory, White Smoke, Gold, Light Gray and Wheat all go well with Dark Slate Gray. White (8.93:1), Ivory (8.85:1), White Smoke (8.19:1), Gold (6.37:1), Light Gray (5.96:1) and Wheat (6.79:1) have enough contrast for text on Dark Slate Gray.

Is dark slate gray a good alternative to black for text?

Yes. Dark Slate Gray (#2F4F4F) is dark enough for body text on white, at 8.93:1 contrast, and its teal tint looks softer than pure black.