COLOR USAGE GUIDE · base
darkgray.
A case-sensitive color name from the built-in xcolor palette.
A lot of possibility.darkgray · base
Color specification
- Color set
- base
- Native model
- gray
- Native values
- 0.25
- Screen hex
- #404040
Screen values are approximate. CMYK previews use xcolor’s conversion; printed output depends on your driver and color profile.
\definecolor{mydarkgray}{gray}{0.25}Use darkgray in your document
1. Load the color set
Add this to your preamble before \begin{document}.
\usepackage{xcolor}2. Color some text
Apply color to a word, sentence, or heading.
\textcolor{darkgray}{A little color goes a long way.}Add a background
Place a colored box behind a small piece of text.
\colorbox{darkgray!20}{Highlighted text}Make a lighter shade
Mix 40% darkgray with 60% white.
\colorlet{myShade}{darkgray!40}
\textcolor{myShade}{A softer shade}