About #228B22
#228B22 is a medium-dark, saturated green with a hue angle of 120°. It belongs to the green family and reads as a cool color. In the RGB model green is the strongest channel at 139 (55%) and red the weakest at 34 (13%). Colors like this are typically used for headers, navigation bars and strong brand areas.
- It is the CSS named color forestgreen, so you can write
color: forestgreeninstead of the hex code.
Color conversions
| HEX | #228B22 |
|---|---|
| RGB | rgb(34, 139, 34) |
| RGB percent | rgb(13.3%, 54.5%, 13.3%) |
| HSL | hsl(120, 61%, 34%) |
| HSV / HSB | hsv(120, 76%, 55%) |
| CMYK | cmyk(76%, 0%, 76%, 45%) |
| CIELAB (D65) | lab(50.6 -49.6 45) |
| Decimal | 2263842 |
| Binary | 00100010 10001011 00100010 |
HEX 22 8B 22 → 34, 139, 34 (each pair is a base-16 number: 2×16 + 2 = 34)
Color harmonies
Complementary
Analogous
Triadic
Split-complementary
Tetradic
Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.
Tints and shades of #228B22
Tints (mixed with white)
Shades (mixed with black)
Tones (mixed with gray)
Contrast and accessibility
| Text on #228B22 | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|
| White text | 4.39:1 | Fail | Pass | Fail | Fail |
| Black text | 4.78:1 | Pass | Pass | Fail | Pass |
Relative luminance is 0.1892 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.
Color blindness simulation
Protanopia#8e7d0e
Deuteranopia#82752d
Tritanopia#008777
Achromatopsia#787878
With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 21.9). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.
Similar named colors
| Name | HEX | ΔE 2000 |
|---|---|---|
| forestgreen | #228b22 | 0 |
| green | #008000 | 4.6 |
| seagreen | #2e8b57 | 9.4 |
| olivedrab | #6b8e23 | 10.2 |
CSS
.element {
color: #228b22;
background-color: rgb(34, 139, 34);
border: 1px solid hsl(120, 61%, 34%);
box-shadow: 0 2px 8px rgb(34 139 34 / 50%);
}
:root { --brand: #228b22; }