Skip to content

Dark green

Dark green is a very dark, vivid color from the green family. Hex code #006400.

Dark green#006400

Color codes

  • CSS namedarkgreen
  • HEX#006400
  • RGBrgb(0 100 0)
  • HSLhsl(120 100% 20%)
  • HSB / HSVhsb(120, 100%, 39%)
  • OKLCHoklch(43.6% 0.148 142.5)
  • CMYKcmyk(100%, 0%, 100%, 61%)

White text

7.43:1 · passes WCAG AAA

Black text

2.82:1 · fails WCAG

Shades

50#D7FFD3
100#99ED92
200#7CD076
300#60B35B
400#44973F
500#277C23
600#12600F
700#074406
800#002B00

Complementary

#006400
#762D80

Analogous

#006400
#535600
#0F5F4D

Triadic

#006400
#214BA2
#922028

About this color

Dark green in CSS and design

Dark green is a very dark, vivid color from the green family. Dark green is one of the extended color keywords, which CSS adopted from the X11 color names used on Unix workstations.

Use it in CSS by name or by any of its codes; these all give the same color:

color: darkgreen;
color: #006400;
color: rgb(0 100 0);
color: hsl(120 100% 20%);

For text on dark green, white reads best. Check other combinations with the contrast checker, or browse all CSS color names.

Frequently asked questions

What is the hex code for dark green?

#006400. In CSS you can also use the keyword darkgreen, which works in every browser.

What is dark green in RGB and HSL?

In RGB it is rgb(0 100 0), in HSL hsl(120 100% 20%). For print, cmyk(100%, 0%, 100%, 61%) is a starting point, but CMYK depends on paper and ink, so check with your printer.

Should I use black or white text on dark green?

White text works better: it has a contrast ratio of 7.43:1 and passes WCAG AAA. Black text reaches 2.82:1.

Which colors go with dark green?

Its complementary color is #762D80, on the opposite side of the color wheel. For a calmer look, combine it with its analogous neighbors #535600 and #0F5F4D. The palette generator builds more combinations.