Dark green
Dark green is a very dark, vivid color from the green family. Hex code #006400.
Color codes
- CSS name
darkgreen - HEX
#006400 - RGB
rgb(0 100 0) - HSL
hsl(120 100% 20%) - HSB / HSV
hsb(120, 100%, 39%) - OKLCH
oklch(43.6% 0.148 142.5) - CMYK
cmyk(100%, 0%, 100%, 61%)
White text
7.43:1 · passes WCAG AAA
Black text
2.82:1 · fails WCAG
Shades
Complementary
Analogous
Triadic
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.
More tools
Work with this color
- Color picker and converterPick a color and get HEX, RGB, HSL, HSB, CMYK and OKLCH, plus shades and harmonies.
- Contrast checkerCheck text and background colors against WCAG AA and AAA, and fix failing ones.
- CSS color namesAll 148 named colors with hex codes, shades, contrast and matching palettes.
- Palette generatorBuild a color palette from harmony rules, with shades and CSS variables.
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.