#2F4F4F

DarkSlateGray — Color Codes & Palette

#2F4F4F  ·  rgb(47, 79, 79)  ·  hsl(180, 25%, 25%)

Color Codes

Format Value
HEX #2F4F4F
RGB rgb(47, 79, 79)
HSL hsl(180, 25%, 25%)

Shades of DarkSlateGray

#2C4949#284343#243D3D#213636#1D3030#192929#152323#111D1D

Tints of DarkSlateGray

#3F6969#4E8383#5E9C9C#76ADAD#8FBCBC#A9CBCB#C2DBDB#DCEAEA

Color Pairings & Harmony

Complementary
#503030
Analogous +30°
#304050
Analogous −30°
#305040
Triadic +120°
#503050
Triadic −120°
#505030

Contrast & Accessibility (WCAG 2.1)

vs. White (#FFFFFF)
8.93:1 — AAA pass for normal text
vs. Black (#000000)
2.35:1 — Fail

CSS Snippet

.element {
  color: #2F4F4F;
}

.element-bg {
  background-color: #2F4F4F;
  color: #ffffff;
}

.element-border {
  border: 2px solid #2F4F4F;
}

About DarkSlateGray

DarkSlateGray is a dark color with moderate saturation, defined by the hex code #2F4F4F. Its exact color model values are rgb(47, 79, 79) in RGB and hsl(180, 25%, 25%) in HSL (hue 180°, saturation 25%, lightness 25%). On a white background the contrast ratio is 8.93:1 — AAA pass for normal text, and on black it is 2.35:1 — Fail. Use DarkSlateGray for UI elements, backgrounds, text, borders, or decorative accents. The shades section below shows progressively darker variations, while the tints strip shows progressively lighter versions — both useful for building a tonal palette. The harmony swatches provide complementary, analogous, and triadic pairings based on the HSL hue wheel.

Want to explore this color interactively, generate palettes, or convert between color formats? The DevArbor Color Picker has you covered.

Open the Color Picker →

Frequently Asked Questions

What is the RGB value of DarkSlateGray?
The RGB value of DarkSlateGray (#2F4F4F) is rgb(47, 79, 79). Red = rgb(47, 79, 79), representing the amounts of red, green, and blue light on a 0–255 scale.
Is DarkSlateGray accessible on a white background?
The contrast ratio of DarkSlateGray on white (#FFFFFF) is 8.93:1 — AAA pass for normal text. On black (#000000) the contrast ratio is 2.35:1 — Fail. WCAG 2.1 requires 4.5:1 for AA (normal text) and 7:1 for AAA.
What colors pair well with DarkSlateGray?
Based on color theory, DarkSlateGray (hsl(180, 25%, 25%)) pairs well with its complementary, analogous, and triadic hues. See the harmony swatches above for the exact hex values of each pairing type.