This dark gray is #3A3A3A, rgb(58, 58, 58), about 23 percent lightness. It is darker than you might expect from the name, and deliberately so: the CSS keyword darkgray is actually #A9A9A9, lighter than plain gray at #808080, a quirk inherited from the old X11 colour list. If you type “dark gray” into a stylesheet you get a pale grey, so this page uses a value that matches what people mean.
What a dark gray screen is good for
- Uniformity checks on LCDs. At 58 out of 255, every channel sits in the panel’s sensitive low range. Dirty-screen effect, vertical banding and darker corners show up here far more than on black or white.
- Low-glare reference behind a light table. A dim, neutral field gives your eyes something calm to rest on without the ink-pool effect of pure black.
- Checking gamma at a glance. On a well set up sRGB display #3A3A3A should look clearly grey, not black. If it disappears, brightness is too low.
- Neutral monitor surround for photo culling. A flat dark grey frame around a photo viewer avoids the contrast exaggeration of black.
When to pick something else
Avoid it as a text background for long sessions if your foreground is mid-grey; #8B8BA7-style muted text on #3A3A3A drops below 4.5:1. It is also the wrong field for OLED burn-in hunting, which needs 50 percent grey, or our burn-in test.
Reading a dark gray field
White text on this background reaches about 11.4:1 contrast, comfortably over WCAG AA. That is why many code editors pick greys in this range for side panels rather than pure black.