CSS color names · Grays

Dark Gray color: hex #a9a9a9, RGB and HSL

Dark Gray is the CSS keyword darkgray (also darkgrey), hex #a9a9a9, rgb(169, 169, 169), hsl(0, 0%, 66%). It is a medium neutral gray with no hue in the grays family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
darkgray, darkgrey
Hex
#a9a9a9
RGB
rgb(169, 169, 169)
HSL
hsl(0, 0%, 66%)
On white
2.35:1 — fails AA; use as a fill, not text
On black
8.94:1 — passes AA for body text
.example {
  color: darkgray;          /* keyword */
  color: #a9a9a9;          /* hex */
  color: rgb(169, 169, 169); /* rgb */
  color: hsl(0, 0%, 66%); /* hsl */
}

What colors go with dark gray

Dark Gray has no hue, so the wheel has nothing to rotate — every match below is the same neutral. That is the point of a neutral: it pairs with any saturated color, which is why grays and near-whites are the background, surface, text and border roles of an interface rather than its brand color. Pick one hue for actions and let dark gray carry everything else.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

Tints and shades of dark gray

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as dark gray — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#b7b7b7
#c6c6c6
#d4d4d4
#e2e2e2
#f1f1f1

Shades (darker)

#8d8d8d
#717171
#545454
#383838
#1c1c1c

A UI color palette built from dark gray

The eight semantic roles an interface actually uses, derived from dark gray as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#a9a9a9
secondary
#a9a9a9
accent
#a9a9a9
background
#fcfcfc
surface
#f5f5f5
text
#1a1a1a
muted
#737373
border
#e6e6e6
Dark mode
primary
#a9a9a9
secondary
#a9a9a9
accent
#a9a9a9
background
#141414
surface
#1f1f1f
text
#f5f5f5
muted
#a6a6a6
border
#383838

Using dark gray in an interface

Grays are text, borders and disabled states. The slate grays are the useful ones: a whisper of blue keeps them from looking like dirt against a colored primary. A semantic palette tints its grays toward the brand hue for the same reason. Whichever role dark gray takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Dark Gray?
Dark Gray is #a9a9a9. In CSS the keyword darkgray, the hex #a9a9a9, rgb(169, 169, 169) and hsl(0, 0%, 66%) all paint the same color. The keyword darkgrey resolves to the same color.
What colors go with Dark Gray?
Dark Gray has no hue, so it goes with everything: neutrals like this one are the background, text and border colors that let a single brand hue stand out. Pair it with one saturated color for actions and keep the rest of the interface in the same gray family.
What is the opposite of Dark Gray on the color wheel?
Dark Gray is achromatic — it sits at the center of the wheel rather than on it, so it has no opposite. Any saturated hue contrasts with it equally.
Can I use Dark Gray for text?
Dark Gray as text on white has a contrast ratio of 2.35:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 8.94:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More grays

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.