Dark Green Hex Code #006400
Dark Green is a dark, moderate green with the hex code #006400. In RGB it is 0, 100, 0, and in HSL it is 120°, 100%, 20%. It is one of the 148 named colors in CSS, so you can write “darkgreen” instead of the hex code.
- HEX
- #006400
- RGB
- rgb(0, 100, 0)
- HSL
- hsl(120, 100%, 20%)
- HSV
- hsv(120°, 100%, 39%)
- CMYK
- cmyk(100%, 0%, 100%, 61%)
- CSS name
- darkgreen
CMYK is a simple screen-to-print estimate. Real print results depend on the printer and paper.
About Dark Green
On a white background Dark Green has a contrast ratio of 7.44:1 (AAA), and on black 2.82:1 (Fail). White text is the better choice on top of it.
It sits between the warm and cool halves of the color wheel, so it pairs comfortably with either.
Green suggests growth, health and success, so it is common for confirmations, finance and eco brands. Check text contrast carefully, because many mid-tone greens fall short of the WCAG minimum with white text.
Shades and tints of Dark Green
Tints mix Dark Green with white and shades mix it with black, in steps of 20%. Select a swatch to copy its hex code.
Color harmonies for Dark Green
These schemes are calculated from Dark Green on the RGB (screen) color wheel. Select a swatch to copy it, or open any scheme in the color wheel to adjust it.
On the artist’s RYB wheel, the complement of Dark Green is #640000, close to the named color Maroon.
Dark Green contrast and accessibility
WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (AA), and 7:1 and 4.5:1 for AAA. This is how Dark Green scores against white and black.
| Against | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White (#ffffff) | 7.44:1 | ✓ Pass | ✓ Pass | ✓ Pass | ✓ Pass |
| Black (#000000) | 2.82:1 | ✕ Fail | ✕ Fail | ✕ Fail | ✕ Fail |
Dark Green and color blindness
These are approximate previews of how Dark Green can look with the main types of color vision deficiency.
Dark Green changes noticeably.
Dark Green changes noticeably.
Dark Green changes noticeably.
Dark Green changes noticeably.
Gradients with Dark Green
Three ready-made starting points. Copy the CSS, or open one in the generator to edit the stops and check contrast.
Dark Green to a lighter tint
background: linear-gradient(135deg, #006400 0%, #99c199 100%); Dark Green to its analogous neighbour
background: linear-gradient(135deg, #006400 0%, #006432 100%); Dark Green to its complement
background: linear-gradient(135deg, #006400 0%, #640064 100%); Colors similar to Dark Green
How each close match differs from Dark Green.
Use Dark Green in code
.element {
color: #006400;
background-color: #006400;
border-color: darkgreen; /* darkgreen is a valid CSS color name */
} :root {
--color-dark-green: #006400;
} <!-- Tailwind arbitrary values -->
<div class="bg-[#006400] text-[#006400] border-[#006400]"></div>
/* Tailwind v4 theme color */
@theme {
--color-dark-green: #006400;
} Dark Green questions
What is the hex code for Dark Green?
The hex code for Dark Green is #006400. In RGB that is rgb(0, 100, 0), and in HSL it is hsl(120, 100%, 20%).
What is the complementary color of Dark Green?
On the RGB (screen) color wheel, the complement of Dark Green is #640064, which is close to Purple. On the artist’s RYB wheel it is #640000, close to Maroon.
Should I use white or black text on Dark Green?
White text. It has a contrast ratio of 7.44:1 against Dark Green, which is WCAG AAA. The other option scores 2.82:1.
Is Dark Green accessible as a text color on white?
Yes. Dark Green on white scores 7.44:1, which passes WCAG AA for normal text (4.5:1) and AAA (7:1).
What are darker and lighter shades of Dark Green?
Mixing Dark Green with black gives #005000, #003C00, #002800, #001400 (20% to 80% black). Mixing it with white gives #338333, #66A266, #99C199, #CCE0CC (20% to 80% white).