Dark green color (#006400)
#006400 (Dark green) is a dark green colour. It is rgb(0, 100, 0) in RGB and hsl(120, 100%, 20%) in HSL. Text in white reads better on it: the contrast is 7.44:1 against white and 2.82:1 against black.
How to work it out
- 1
A hex code is three pairs of base-16 digits: red, green and blue, from 00 (none) to FF (full).
\mathrm{#006400}:\quad R=\mathrm{00}_{16}=0,\ G=\mathrm{64}_{16}=100,\ B=\mathrm{00}_{16}=0 - 2
HSL describes the same colour as a hue angle on the colour wheel (0° red, 120° green, 240° blue), a saturation and a lightness.
- 3
The complementary colour sits opposite on the wheel: add 180° to the hue.
120^\circ + 180^\circ = 300^\circ ;\Rightarrow; \mathrm{#640064} - 4
Contrast is the ratio of the lighter to the darker relative luminance, each plus 0.05. WCAG asks for at least 4.5:1 for normal text and 3:1 for large text (AA).
LaTeX source of the formulas on this page
\[ \mathrm{#006400} = \mathrm{rgb}(0, 100, 0) \]
\[ \mathrm{#006400}:\quad R=\mathrm{00}_{16}=0,\ G=\mathrm{64}_{16}=100,\ B=\mathrm{00}_{16}=0 \]
\[ H=120^\circ,\quad S=100\%,\quad L=20\% \]
\[ 120^\circ + 180^\circ = 300^\circ ;\Rightarrow; \mathrm{#640064} \]
\[ \text{contrast} = \frac{L_1+0.05}{L_2+0.05} = 7.44:1\ \text{(on white)} \]Dark green in every colour format
| Format | Value |
|---|---|
| HEX | #006400 |
| RGB | rgb(0, 100, 0) |
| RGB (percent) | rgb(0.0%, 39.2%, 0.0%) |
| HSL | hsl(120, 100%, 20%) |
| HSV / HSB | hsv(120, 100%, 39%) |
| CMYK | cmyk(100%, 0%, 100%, 61%) |
| Decimal | 25600 |
| Description | dark green |
| CSS name | darkgreen |
Text contrast (WCAG)
| Background of this colour with… | Contrast | AA normal (4.5) | AA large (3) | AAA normal (7) | AAA large (4.5) |
|---|---|---|---|---|---|
| White text | 7.44:1 | pass | pass | pass | pass |
| Black text | 2.82:1 | fail | fail | fail | fail |
Shades and tints
| Kind | Hex codes (darkest to lightest) |
|---|---|
| Shades (mixed with black) | #001100 #002100 #003200 #004300 #005300 |
| This colour | #006400 |
| Tints (mixed with white) | #2B7E2B #559855 #80B280 #AACBAA #D5E5D5 |
How it looks with colour blindness
| Type | Hex | Distance from the original |
|---|---|---|
| Protanopia | #665900 | 40 |
| Deuteranopia | #5D5311 | 40 |
| Tritanopia | #006154 | 44 |
| Grayscale | #555555 | - |
Nearest named colours
| Name | Hex |
|---|---|
| Green | #008000 |
| Forest green | #228B22 |
| Olive drab | #6B8E23 |
| Sea green | #2E8B57 |
Questions
What is the RGB value of #006400?
rgb(0, 100, 0): red 0, green 100, blue 0.
What is the HSL value of #006400?
hsl(120, 100%, 20%): a hue of 120°, 100% saturation and 20% lightness.
What is the complementary colour of #006400?
#640064, found by turning the hue by 180°. The inverted colour (each channel subtracted from 255) is #FF9BFF.
Should I use white or black text on #006400?
White. White gives 7.44:1 and black 2.82:1; the better one passes WCAG AA for normal text.
What is the CMYK value of #006400?
cmyk(100%, 0%, 100%, 61%). This is a simple formula conversion; printed colours depend on the printer profile.
Is #006400 a named colour?
Yes: it is the CSS colour name "darkgreen".