Dark Green #006400

Dark Green color (#006400)

Dark Green is one of the 148 CSS named colors. Use the keyword darkgreen anywhere CSS accepts a color, or its hex code #006400, which is rgb(0, 100, 0) in RGB.

It is a dark, vivid cool color with a hue angle of 120° on the HSL color wheel and a perceived lightness of 44% in OKLCH. On a dark green background, white text gives the higher contrast at 7.43:1, which passes WCAG AA for normal text.

Dark Green color codes

CSS name darkgreen
HEX #006400
HEX (8-digit) #006400FF
RGB rgb(0, 100, 0)
HSL hsl(120, 100%, 20%)
HSV / HSB hsv(120, 100%, 39%)
OKLCH oklch(43.6% 0.1484 142.5)
CMYK cmyk(100%, 0%, 100%, 60.8%)

Contrast with white and black

WCAG 2 contrast ratios and APCA lightness contrast (Lc) for dark green used as text and as a background.

Aa Sample text
Dark Green text on white
7.43:1 WCAG Lc 85.1 APCA Passes AA
Aa Sample text
Dark Green text on black
2.82:1 WCAG Lc -16.9 APCA Fails AA
Aa Sample text
White text on dark green
7.43:1 WCAG Lc -90 APCA Passes AA
Aa Sample text
Black text on dark green
2.82:1 WCAG Lc 18.9 APCA Fails AA

Tints and shades of dark green

Tints mix dark green with white; shades mix it with black, in 10% steps. Click a swatch to copy it, or build custom scales in the tint & shade generator.

Tints

Shades

Colors that go with dark green

Harmonies calculated on the HSL color wheel. Explore more in the color scheme generator.

Complementary

Analogous

Triadic

Split-Complementary

Dark Green with color blindness

Approximately how dark green appears with each type of color vision deficiency. Test full designs with the color blindness simulator.

Using dark green in CSS

.element {
  color: darkgreen;
  background-color: #006400;
  border-color: rgb(0 100 0 / 50%);
  outline-color: oklch(43.6% 0.1484 142.5);
}

Similar named colors

See all shades of green or browse every CSS color name.

Related tools