Dark Gray Color Code: Hex #A9A9A9
The hex code for Dark Gray is #A9A9A9 (the CSS keyword darkgray). Dark Gray RGB code: rgb(169, 169, 169). The xkcd color survey gives #363737 instead, which looks clearly different; both codes are below with their source.
#A9A9A9Top: the code browsers use#363737Below: compare edge to edgeDark Gray color codes: each Dark Gray hex code in every format
Sources
Properties
- Hex codes
- 2 different ones in 3 color lists; they look clearly different
- Family
- gray
- Contrast
- 2.35:1 with white, 8.94:1 with black
- CSS keyword
- darkgray
- Also written
- darkgrey
- Character
- mid-tone, near-neutral
- Readable text on it
- black (AA)
On the web, dark gray is noticeably lighter than plain gray, because dark gray came from the X11 list and did not exist in HTML or CSS level 1, while gray came from HTML.
A mid-tone, almost neutral tint. In code, darkgray gives exactly this web value. If you mean the color as people usually picture the name, the survey value #363737 is closer: it is darker and about as saturated.
Black text reads best on it; white text does not pass WCAG AA. Next to Silver, its closest named neighbour, it looks darker, about as saturated and neither warmer nor cooler; beside Light Gray it looks darker, about as saturated and neither warmer nor cooler.
Colors that go with Dark Gray
Complementary: the opposite of Dark Gray
#A9A9A9Black text 8.94:1#A9A9A9Black text 8.94:1#CFCFCFBlack text 13.48:1#676767White text 5.66:1
Analogous
#A9A9A9Black text 8.94:1#A9A9A9Black text 8.94:1#A9A9A9Black text 8.94:1#DCDCDCBlack text 15.31:1
Triadic
#A9A9A9Black text 8.94:1#A9A9A9Black text 8.94:1#A9A9A9Black text 8.94:1#E9E9E9Black text 17.30:1
Monochrome
#2C2C2CWhite text 13.97:1#676767White text 5.66:1#A9A9A9Black text 8.94:1#C2C2C2Black text 11.79:1#DCDCDCBlack text 15.31:1
With neutrals
#A9A9A9Black text 8.94:1#E9E9E9Black text 17.30:1#121212White text 18.73:1#8C8C8CBlack text 6.25:1
Preview
Heading on Dark Gray
Body text on this color, 8.94:1.
ButtonHeading in Dark Gray
Text in this color on white, 2.35:1.
ButtonTints and shades
#E9E9E9#DCDCDC#CFCFCF#C2C2C2#B5B5B5#A9A9A9#878787#676767#494949#2C2C2C#121212
WhiteDark GrayBlack
Similar named colors
Where the name comes from
- Source: Wikipedia, “X11 color names” (checked 3 Nov 2026)
- Listed in CSS Color 4, xkcd color survey, meodai color-name-list. About these lists.
Try it: