darkslategray (#2F4F4F)

darkslategray is a CSS named color with the hex code #2F4F4F, rgb(47, 79, 79). It is a dark, muted cyan.

darkslategray#2F4F4F
Keyworddarkslategray
HEX#2f4f4f
RGBrgb(47, 79, 79)
HSLhsl(180, 25%, 25%)

Full #2F4F4F details: palettes, shades, color-blind view →

Description

Darkslategray (read as "dark slategray") has a hue of 180°, saturation 25% and lightness 25%, which places it in the cyan & teal family. The "dark" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080). It is identical to darkslategrey; both keywords produce #2F4F4F.

Using darkslategray in CSS

.title { color: darkslategray; }
.box   { background: darkslategray; border-color: #2f4f4f; }
.soft  { background: rgb(47 79 79 / 20%); }   /* darkslategray at 20% opacity */

Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.

Similar named colors

ColorHEXRGBΔE 2000
dimgray#696969105, 105, 10517
teal#0080800, 128, 12818
darkcyan#008b8b0, 139, 13921.8
slategray#708090112, 128, 14422.7
darkolivegreen#556b2f85, 107, 4722.7
purple#800080128, 0, 12823.5
darkmagenta#8b008b139, 0, 13923.5
gray#808080128, 128, 12824

ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.

Pairs well with

Readability

Contrast with white text: 8.93:1; with black text: 2.35:1. White body text on darkslategray meets WCAG AA.

Frequently asked questions

What is the hex code for darkslategray?
#2F4F4F.
What colors are similar to darkslategray?
dimgray (#696969), teal (#008080), darkcyan (#008b8b).