Description
Darkgreen (read as "dark green") has a hue of 120°, saturation 100% and lightness 20%, which places it in the green family. The "dark" prefix is part of the CSS name, but CSS names are not systematic: for example darkgray (#A9A9A9) is lighter than gray (#808080).
Using darkgreen in CSS
.title { color: darkgreen; }
.box { background: darkgreen; border-color: #006400; }
.soft { background: rgb(0 100 0 / 20%); } /* darkgreen at 20% opacity */Named colors are case-insensitive and supported by every browser. Most of the 148 names come from the X11 color list adopted by early browsers.
Similar named colors
| Color | HEX | RGB | ΔE 2000 |
|---|---|---|---|
| green | #008000 | 0, 128, 0 | 9.4 |
| darkolivegreen | #556b2f | 85, 107, 47 | 11.2 |
| forestgreen | #228b22 | 34, 139, 34 | 13.4 |
| seagreen | #2e8b57 | 46, 139, 87 | 16.7 |
| olivedrab | #6b8e23 | 107, 142, 35 | 19.4 |
| olive | #808000 | 128, 128, 0 | 22.6 |
| darkslategray | #2f4f4f | 47, 79, 79 | 25.3 |
| dimgray | #696969 | 105, 105, 105 | 26.9 |
ΔE 2000 measures perceived difference: under 2 is hard to tell apart, over 10 is clearly different.
Pairs well with
Readability
Contrast with white text: 7.44:1; with black text: 2.82:1. White body text on darkgreen meets WCAG AA.