Swatchproof

Dark slate gray #2F4F4F

Dark slate gray is one of the named colours in CSS, written darkslategray or darkslategrey. White text reaches 8.93:1 on it, enough for body text.

Try on walls Preview on a website

Colour codes

CSS keyworddarkslategray or darkslategrey
HEX#2F4F4F
RGBrgb(47 79 79)
HSLhsl(180 25% 25%)
OKLCHoklch(40.3% 0.038 195.8)
White text8.93:1 · body text AA Pass
Black text2.35:1 · body text AA Fail

Colours that go with Dark slate gray

The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Slate Color (#34454C), close. These are the colours Wada paired it with, ranked by their contrast with Dark slate gray itself.

ColourHEXContrast with Dark slate grayBody text AA
Yellow#FFF2007.63:1Pass
Sulpher Yellow#F5ECC27.51:1Pass
Lemon Yellow#F8ED437.31:1Pass
Ivory Buff#EBD3A26.11:1Pass
Turquoise Green#B5DECC6.07:1Pass
Cream Yellow#FDBF685.45:1Pass
Corinthian Pink#F8B6BA5.27:1Pass
Cobalt Green#96D1AA5.10:1Pass
Pinkish Cinnamon#EEB4804.88:1Pass
Golden Yellow#F3A2574.30:1Fail
Yellow Orange#F99D1B4.19:1Fail
Grayish Lavender - B#C0A9B34.07:1Fail
Ochraceous Salmon#D8A37B4.02:1Fail
Apricot Orange#F68C503.74:1Fail
Oil Green#8192382.59:1Fail
Raw Sienna#BB71252.34:1Fail
Olive Green#6B71401.73:1Fail
Burnt Sienna#AE52241.71:1Fail
Antwarp Blue#0071901.60:1Fail
Cotinga Purple#5013451.55:1Fail
Diamine Green#1A74441.54:1Fail
Dark Tyrian Blue#12354E1.43:1Fail
Carmine Red#A62C371.29:1Fail
Red#A721441.25:1Fail
Pale Raw Umber#71502F1.23:1Fail
Taupe Brown#7A44561.19:1Fail
Vandyke Red#82241F1.06:1Fail
Violet#4F40861.02:1Fail

Palettes with Slate Color

Shades and tints of Dark slate gray

Nine lightness steps in OKLCH that keep the hue of Dark slate gray. Chroma is reduced only where sRGB cannot show it.

:root {
  --darkslategray-100: #D9FEFD;
  --darkslategray-200: #C9EDED;
  --darkslategray-300: #B2D6D6;
  --darkslategray-400: #96B9B9;
  --darkslategray-500: #789A9A;
  --darkslategray-600: #587979;
  --darkslategray-700: #3C5C5C;
  --darkslategray-800: #214141;
  --darkslategray-900: #062727;
}

Text that keeps Dark slate gray on screen

Text #2F4F4F on #D9FEFD reaches 8.31:1, which passes WCAG AA for body text. Check it on a dashboard

Similar CSS colours