Dark Green
Hex #006400, rgb(0 100 0). A green CSS named color.
Open in palette generatorDark Green color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Dark Green
Dark Green is a dark saturated green with the hex code #006400. In RGB it is made of 0 red, 100 green and 0 blue; in HSL its hue is 120°, with 100% saturation and 20% lightness. Its perceptual lightness (OKLCH L) is 43.6%.
It is a CSS named color, so you can write "darkgreen" anywhere CSS accepts a color. Against white it has a contrast ratio of 7.44:1 and against black 2.82:1, so white text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Dark Green mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Dark Green 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Dark Green
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Split complementary
Contrast and readability
WCAG 2 contrast of Dark Green with white and black. The readable text color on Dark Green is white.
On white7.44:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc 85
On black2.82:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc -17
Test any pair in the contrast checker.
Color blindness preview
How Dark Green appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#665900
- Deuteranopia#5D5311
- Tritanopia#006154
- Protanomaly#585B00
- Deuteranomaly#53570D
- Tritanomaly#006339
- Achromatopsia#555555
Colors similar to Dark Green
The closest named colors by perceptual difference (OKLab).
Use Dark Green in CSS and Tailwind
.dark-green {
color: darkgreen; /* #006400 */
background-color: rgb(0 100 0);
border-color: oklch(43.6% 0.148 142.5);
}/* Tailwind CSS v4: bg-dark-green-500, text-dark-green-700... */
@theme {
--color-dark-green-50: #F5FDF4;
--color-dark-green-100: #E2F4DF;
--color-dark-green-200: #C5E8C1;
--color-dark-green-300: #96D690;
--color-dark-green-400: #52BB4C;
--color-dark-green-500: #10A90E;
--color-dark-green-600: #009300;
--color-dark-green-700: #007900;
--color-dark-green-800: #006400;
--color-dark-green-900: #065005;
--color-dark-green-950: #001D00;
}
<!-- or the exact color, no config -->
<div class="bg-[#006400] text-[#FFFFFF]">…</div>