#228B22 color (forestgreen)

#228B22 is rgb(34, 139, 34) in RGB and hsl(120, 61%, 34%) in HSL. It is exactly the CSS color forestgreen. Use black text on it (contrast 4.78:1).

#228B22forestgreen
HEX#228B22
RGBrgb(34, 139, 34)
RGB percentrgb(13.3%, 54.5%, 13.3%)
HSLhsl(120, 61%, 34%)
HSV / HSBhsv(120, 76%, 55%)
CMYKcmyk(76%, 0%, 76%, 45%)
CIELAB (D65)lab(50.6 -49.6 45)

Edit in the color converter → · Check contrast → · Shades →

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.

Color conversions

HEX#228B22
RGBrgb(34, 139, 34)
RGB percentrgb(13.3%, 54.5%, 13.3%)
HSLhsl(120, 61%, 34%)
HSV / HSBhsv(120, 76%, 55%)
CMYKcmyk(76%, 0%, 76%, 45%)
CIELAB (D65)lab(50.6 -49.6 45)
Decimal2263842
Binary00100010 10001011 00100010

HEX 22 8B 22 → 34, 139, 34 (each pair is a base-16 number: 2×16 + 2 = 34)

Color harmonies

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 #228B22RatioAA normalAA largeAAA normalAAA large
White text4.39:1FailPassFailFail
Black text4.78:1PassPassFailPass
White text on #228B22
Black text on #228B22
#228B22 text on white
#228B22 text on black

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

NameHEXΔE 2000
forestgreen#228b220
green#0080004.6
seagreen#2e8b579.4
olivedrab#6b8e2310.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; }

Frequently asked questions

What color is #228B22?
A medium-dark saturated green in the green family. Closest CSS name: forestgreen.
What is #228B22 in RGB?
rgb(34, 139, 34): red 34, green 139, blue 34.
What is the complementary color of #228B22?
#8B228B, found by rotating the hue 180°.