Skip to content
PantoneTools
cyan
CSS Named Colors

Darkslategray

darkslategray · #2F4F4F

HEX

#2F4F4F

RGB

rgb(47, 79, 79)

CMYK

cmyk(41%, 0%, 0%, 69%)

HSL

hsl(180, 25%, 25%)

LAB

lab(31.3, -11.7, -3.7)

What is Darkslategray?

Darkslategray is the darkslategray reference in the CSS Named Colors. Its sRGB value is #2F4F4F (rgb 47, 79, 79). It sits in the cyan family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Darkslategray as a background.

Black text on this color

Sample text · 2.35 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 8.93 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Darkslategray

An 11-step tonal scale derived from Darkslategray (#2F4F4F). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #EEF1F1

50

#EEF1F1

#EEF1F1

Copied #DEE3E3

100

#DEE3E3

#DEE3E3

Copied #BCC7C7

200

#BCC7C7

#BCC7C7

Copied #97A7A7

300

#97A7A7

#97A7A7

Copied #637B7B

400

#637B7B

#637B7B

Copied #2F4F4F

500

#2F4F4F

#2F4F4F

Copied #284343

600

#284343

#284343

Copied #1F3333

700

#1F3333

#1F3333

Copied #152424

800

#152424

#152424

Copied #0C1414

900

#0C1414

#0C1414

Copied #060909

950

#060909

#060909

Lighter tints (mixed with white)

Copied #748080

15%

#748080

Copied #99A1A1

30%

#99A1A1

Copied #B6BABA

45%

#B6BABA

Copied #CDD0D0

60%

#CDD0D0

Copied #E2E3E3

75%

#E2E3E3

Darker shades (mixed with black)

Copied #2B4949

15%

#2B4949

Copied #274242

30%

#274242

Copied #223A3A

45%

#223A3A

Copied #1C3131

60%

#1C3131

Copied #142626

75%

#142626

Color harmonies for Darkslategray

Classic color-theory harmonies derived from rotating the hue of Darkslategray. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #2F4F4F

#2F4F4F

#2F4F4F

Copied #503030

#503030

#503030

Triadic

Three colors 120° apart

Copied #2F4F4F

#2F4F4F

#2F4F4F

Copied #503050

#503050

#503050

Copied #505030

#505030

#505030

Analogous

Two neighbors ±30° on the wheel

Copied #305040

#305040

#305040

Copied #2F4F4F

#2F4F4F

#2F4F4F

Copied #304050

#304050

#304050

Split-complementary

Base + two colors flanking its complement

Copied #2F4F4F

#2F4F4F

#2F4F4F

Copied #503040

#503040

#503040

Copied #504030

#504030

#504030

Tetradic

Two complementary pairs

Copied #2F4F4F

#2F4F4F

#2F4F4F

Copied #303050

#303050

#303050

Copied #503030

#503030

#503030

Copied #505030

#505030

#505030

Square

Four colors evenly spaced 90° apart

Copied #2F4F4F

#2F4F4F

#2F4F4F

Copied #403050

#403050

#403050

Copied #503030

#503030

#503030

Copied #405030

#405030

#405030

Darkslategray in every color space

Full conversion of Darkslategray across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#2F4F4F

RGB

rgb(47, 79, 79)

CMYK

cmyk(41%, 0%, 0%, 69%)

HSL

hsl(180, 25%, 25%)

HSV

hsv(180, 41%, 31%)

HWB

hwb(180 18% 69%)

CIE Lab

lab(31.3 -11.7 -3.7)

OKLCH

oklch(40.3% 0.038 195.8)

XYZ (D65)

xyz(5.38, 6.76, 8.42)

Copy-ready code for Darkslategray

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #2F4F4F;
background-color: #2F4F4F;

CSS variable

:root {
  --color-darkslategray: #2F4F4F;
}

Tailwind config

// tailwind.config.js
colors: {
  'darkslategray': '#2F4F4F',
}

Sass

$color-darkslategray: #2F4F4F;

Swift UIColor

UIColor(red: 0.184, green: 0.310, blue: 0.310, alpha: 1.0)

Android XML

<color name="darkslategray">#2F4F4F</color>

Closest match in every color system

The nearest Darkslategray equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #1F3A3D

RAL 6004

#1F3A3D

Blue green

Copied #2F4538

RAL 6005

#2F4538

Moss green

Copied #2C5545

RAL 6028

#2C5545

Pine green

Copied #4E5754

RAL 7009

#4E5754

Green grey

Copied #025669

RAL 5009

#025669

Azure blue

Copied #434B4D

RAL 7011

#434B4D

Iron grey

FAQ about Darkslategray

What is the HEX code for Darkslategray?

Darkslategray (darkslategray) has the HEX code #2F4F4F. In RGB it is rgb(47, 79, 79), and in CMYK it is cmyk(41%, 0%, 0%, 69%).

What is the OKLCH value of Darkslategray?

Darkslategray converts to oklch(0.403 0.038 195.8). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Darkslategray accessible for body text?

Used as a background, Darkslategray has a contrast ratio of 2.35:1 with black text and 8.93:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use white text and verify in real UI context.

What is the closest Pantone to Darkslategray?

The closest Pantone reference to Darkslategray by ΔE2000 perceptual distance is Pantone 323 C (#006269). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Darkslategray?

The closest RAL Classic reference to Darkslategray by ΔE2000 distance is RAL 6004 (Blue green, #1F3A3D). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Darkslategray?

The complementary color (180° opposite on the HSL color wheel) of Darkslategray is #503030. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
cyan

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Darkslategray — #2F4F4F | PantoneTools