100% free no uploads no sign-up

dark gray color code

The hex code for dark gray is #A9A9A9, which is rgb(169, 169, 169) in RGB and cmyk(0%, 0%, 0%, 34%) in CMYK. It's a light, neutral gray. It is a built-in CSS colour, so you can also write it as “darkgray”.

#A9A9A9dark gray
White text: 2.35:1 ✗Black text: 8.93:1 ✓ AANearest name: dark gray

Move the sliders to find a lighter, darker or softer dark gray; the codes update as you go.

Dark Gray colour codes

HEX#A9A9A9
RGBrgb(169, 169, 169)
HSLhsl(0, 0%, 66%)
HSV / HSBhsv(0, 0%, 66%)
CMYKcmyk(0%, 0%, 0%, 34%)
Decimal11119017
CSS keyworddarkgray, darkgrey

About dark gray

Dark Gray sits at a hue of 0° on the colour wheel, with 0% saturation and 66% lightness. With so little saturation it reads as a neutral, which makes it easy to pair with almost any accent colour.

For text, black reads better on dark gray. Dark Gray as text on a white background has a contrast ratio of 2.35:1, which fails the WCAG AA rule for body text (4.5:1) and fails the 3:1 rule for large text. On black it is 8.93:1, which passes AA for body text.

Tints and shades of dark gray

Tints mix dark gray with white and shades mix it with black, in 10% steps. They're the easiest way to get lighter backgrounds and darker hover or text colours that still match.

#F6F6F6#EEEEEE#E5E5E5#DDDDDD#D4D4D4#CBCBCB#C3C3C3#BABABA#B2B2B2
dark gray #A9A9A9
#989898#878787#767676#656565#555555#444444#333333#222222#111111

Colours that go with dark gray

Complementary — opposite on the colour wheel: maximum contrast

#A9A9A9#A9A9A9

Analogous — neighbours 30° either side: calm and natural

#A9A9A9#A9A9A9#A9A9A9

Triadic — three hues 120° apart: lively but balanced

#A9A9A9#A9A9A9#A9A9A9

Split complementary — the two neighbours of the complement: contrast with less tension

#A9A9A9#A9A9A9#A9A9A9

Tetradic — four hues 90° apart: rich, use one as the main colour

#A9A9A9#A9A9A9#A9A9A9#A9A9A9

Dark Gray text contrast

CombinationRatioAA normal (4.5:1)AA large (3:1)AAA (7:1)
dark gray on white2.35:1failfailfail
dark gray on black8.93:1passpasspass

Check dark gray against any other colour in the contrast checker.

How dark gray looks with colour blindness

Simulated with the Machado et al. (2009) model for the complete loss of one type of cone cell. Colour vision deficiency affects roughly 1 in 12 men and 1 in 200 women, most often as red-green colour blindness.

normal #A9A9A9protanopia #A9AAA9deuteranopia #A9A9A9tritanopia #A9A9A9

Use dark gray in code

.dark-gray {
  color: darkgray;
  background-color: #a9a9a9;
  border-color: rgb(169, 169, 169);
}

Frequently asked questions

What is the hex code for dark gray?

Dark Gray is #A9A9A9 (lowercase #a9a9a9). It's the official value of the CSS keyword “darkgray”, which can also be written “darkgrey”.

What is dark gray in RGB, HSL and CMYK?

RGB: rgb(169, 169, 169). HSL: hsl(0, 0%, 66%). CMYK: cmyk(0%, 0%, 0%, 34%). CMYK is a simple conversion for reference; for professional printing, ask your printer for a matching ink or Pantone swatch.

What colours go with dark gray?

Dark Gray is a neutral, so it goes with almost anything. For a classic look pair it with navy blue (#000080) or burgundy (#800020); for something brighter use coral (#FF7F50), teal (#008080) or mustard yellow (#FFDB58). Lighter and darker grays work as backgrounds and text alongside dark gray.

Is dark gray a warm or cool colour?

Dark Gray is a neutral: its saturation is only 0%, so it doesn't lean clearly warm or cool.

Should I use black or white text on dark gray?

Black. Black text on dark gray has a contrast ratio of 8.93:1 and white text has 2.35:1. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text.

How do I use dark gray in CSS?

Write color: darkgray; or color: #a9a9a9; — both give the same colour. Named colours work in every browser.

Colours similar to dark gray