darkgreen — #006400
#006400
rgb(0, 100, 0) · hsl(120, 100%, 20%) · CSS keyword darkgreen
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| darkgreen on white | 7.44:1 | AA | AA |
| darkgreen on black | 2.82:1 | — | — |
As a background, darkgreen takes white text: 7.44:1 against 2.82:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: darkgreen;
color: #006400;
color: rgb(0 100 0);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to darkgreen
- green — #008000
- forestgreen — #228B22
- darkslategray — #2F4F4F
- teal — #008080
- seagreen — #2E8B57
- darkolivegreen — #556B2F
Frequently asked questions
What is the hex code for darkgreen?
The hex code for darkgreen is #006400 — RGB 0, 100, 0.
Can I use darkgreen for text?
Yes. darkgreen reaches 7.44:1 against white, past the 4.5:1 that WCAG AA asks for body text.
Should text on darkgreen be black or white?
White — 7.44:1 against 2.82:1 the other way.
Other named colours
- darkkhaki — #BDB76B
- darkmagenta — #8B008B
- darkolivegreen — #556B2F
- darkorange — #FF8C00
- darkorchid — #9932CC
- darkred — #8B0000
- darksalmon — #E9967A
- darkseagreen — #8FBC8F
- darkslateblue — #483D8B
- darkslategray — #2F4F4F
- darkturquoise — #00CED1
- darkviolet — #9400D3
#006400 in full — tints, shades and harmonies · All named colours · Colour reference