represents a dark gray color in graphics or style specifications.
DarkGray
represents a dark gray color in graphics or style specifications.
Examples
open all close allBasic Examples (3)
Graphics[{DarkGray, EdgeForm[Black], Disk[]}]Make a plot with dark gray plot style:
Plot[Sin[x], {x, 0, 2Pi}, PlotStyle -> DarkGray]Display a grid of numbers with dark gray background:
Grid[{{1, 2}, {3, 4}}, Frame -> All, Background -> DarkGray, BaseStyle -> White]Possible Issues (1)
In light mode, the default tick and axes colors make them hard to read with a DarkGray background:
LightModePane[Plot[Sin[x], {x, 0, 2Pi}, Background -> DarkGray]]Use DarkModePane to force dark mode coloring:
DarkModePane[Plot[Sin[x], {x, 0, 2Pi}, Background -> DarkGray]]StandardGray contrasts with both light and dark mode coloring:
g = Plot[Sin[x], {x, 0, 2Pi}, Background -> StandardGray];
{LightModePane[g], DarkModePane[g]}Related Guides
-
▪
- Colors
History
Text
Wolfram Research (2025), DarkGray, Wolfram Language function, https://reference.wolfram.com/language/ref/DarkGray.html.
CMS
Wolfram Language. 2025. "DarkGray." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DarkGray.html.
APA
Wolfram Language. (2025). DarkGray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DarkGray.html
BibTeX
@misc{reference.wolfram_2026_darkgray, author="Wolfram Research", title="{DarkGray}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/DarkGray.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_darkgray, organization={Wolfram Research}, title={DarkGray}, year={2025}, url={https://reference.wolfram.com/language/ref/DarkGray.html}, note=[Accessed: 12-June-2026]}