Skip to main content
matte

#2F4F4F

darkslategray

#2F4F4F is the CSS named color "darkslategray", an exact match. In RGB it breaks down to red 47, green 79, and blue 79 out of 255 each. In HSL terms that's a hue of 180°, 25% saturation, and 25% lightness: quite dark, close to black — it works well as body text on a light background or as a near-black UI surface.

Every format

HEX#2f4f4f
RGBrgb(47, 79, 79)
HSLhsl(180° 25% 25%)
HSBhsb(180° 41% 31%)
OKLCHoklch(40% 0.038 196°)
OKLABoklab(40% -0.036 -0.010)
LCHlch(31% 12.9 198°)
CMYKcmyk(41% 0% 0% 69%)

Shades (darker)

#2f4f4f · #264646 · #1e3e3e · #153535 · #0c2d2d

Tints (lighter)

#2f4f4f · #3f6060 · #507171 · #618282 · #729494

Shades mix #2F4F4F toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.

On white: 8.93:1 — AAA
On black: 2.35:1 — fails

Frequently asked

What is #2F4F4F in RGB?
#2F4F4F is rgb(47, 79, 79) — red 47, green 79, blue 79 out of 255 each.
Does #2F4F4F pass WCAG contrast on a white background?
It has a contrast ratio of 8.93:1 against white, which passes WCAG AAA for normal text.
What's a good background color to pair with #2F4F4F?
White text or a white background gives better contrast (8.93:1) than black (2.35:1).

Related colors

Full color tools