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
White text on this color
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.
50
#EEF1F1
#EEF1F1
100
#DEE3E3
#DEE3E3
200
#BCC7C7
#BCC7C7
300
#97A7A7
#97A7A7
400
#637B7B
#637B7B
500
#2F4F4F
#2F4F4F
600
#284343
#284343
700
#1F3333
#1F3333
800
#152424
#152424
900
#0C1414
#0C1414
950
#060909
#060909
Lighter tints (mixed with white)
15%
#748080
30%
#99A1A1
45%
#B6BABA
60%
#CDD0D0
75%
#E2E3E3
Darker shades (mixed with black)
15%
#2B4949
30%
#274242
45%
#223A3A
60%
#1C3131
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
#2F4F4F
#2F4F4F
#503030
#503030
Triadic
Three colors 120° apart
#2F4F4F
#2F4F4F
#503050
#503050
#505030
#505030
Analogous
Two neighbors ±30° on the wheel
#305040
#305040
#2F4F4F
#2F4F4F
#304050
#304050
Split-complementary
Base + two colors flanking its complement
#2F4F4F
#2F4F4F
#503040
#503040
#504030
#504030
Tetradic
Two complementary pairs
#2F4F4F
#2F4F4F
#303050
#303050
#503030
#503030
#505030
#505030
Square
Four colors evenly spaced 90° apart
#2F4F4F
#2F4F4F
#403050
#403050
#503030
#503030
#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.
Closest Pantone matches
Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.
Closest RAL Classic matches
Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.
RAL 6004
#1F3A3D
Blue green
RAL 6005
#2F4538
Moss green
RAL 6028
#2C5545
Pine green
RAL 7009
#4E5754
Green grey
RAL 5009
#025669
Azure blue
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 named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.