Reference manual/Color library
Back to svgnames
COLOR USAGE GUIDE · svgnames

DarkSlateGray.

A case-sensitive color name from the svgnames color set.

#2F4F4FA little color.
A lot of possibility.
DarkSlateGray · svgnames

Color specification

Color set
svgnames
Native model
rgb
Native values
0.185,0.31,0.31
Screen hex
#2F4F4F

Screen values are approximate. CMYK previews use xcolor’s conversion; printed output depends on your driver and color profile.

\definecolor{myDarkSlateGray}{rgb}{0.185,0.31,0.31}

Use DarkSlateGray in your document

1. Load the color set

Add this to your preamble before \begin{document}.

\usepackage[svgnames]{xcolor}

2. Color some text

Apply color to a word, sentence, or heading.

\textcolor{DarkSlateGray}{A little color goes a long way.}
Preview text in simulator

Add a background

Place a colored box behind a small piece of text.

\colorbox{DarkSlateGray!20}{Highlighted text}
Preview background in simulator

Make a lighter shade

Mix 40% DarkSlateGray with 60% white.

\colorlet{myShade}{DarkSlateGray!40}
\textcolor{myShade}{A softer shade}
Open in color mixer
Explore more xcolor commands