#227E1C

Closest named color: Tree Green (#2A7E19). oklch(52% 0.157 142.2), rgb(34, 126, 28).

Aa

White text reads best on this color (5.16:1).

About this color

#227E1C is a medium-dark, vivid green. In OKLCH its lightness is 52%, its chroma 0.157 and its hue 142°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Tree Green (#2A7E19), ΔE 0.005 away. White text reads best on it, at 5.16:1.

Hue familyGreens
Lightnessmedium-dark (52%)
Chromavivid (0.157)
Temperaturein between
Nearest nameTree Green (#2A7E19)
Black text4.06:1
White text5.16:1

Values

HEX#227E1C
RGBrgb(34, 126, 28)
HSLhsl(116, 64%, 30%)
OKLCHoklch(52% 0.157 142.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #227E1C 5.16:1 AA Lc -80.5 Fine for body text
Black text on #227E1C 4.06:1 AA large text Lc 29.0 Dividers and decoration only
#227E1C text on white 5.16:1 AA Lc 75.1 Fine for body text
#227E1C text on black 4.06:1 AA large text Lc -26.6 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #F2F7F1

    oklch(97.1% 0.01 140.5)

  2. Step 100

    100

    #E2EEE0

    oklch(93.6% 0.023 141.2)

  3. Step 200

    200

    #CAE1C7

    oklch(88.6% 0.043 142)

  4. Step 300

    300

    #A5CEA0

    oklch(81% 0.077 142)

  5. Step 400

    400

    #72B46C

    oklch(70.8% 0.122 142.3)

  6. Step 500

    500

    #49A042

    oklch(63.1% 0.156 142.2)

  7. Step 600

    600

    #258A1F

    oklch(55.5% 0.168 142.3)

  8. Step 700

    700 (this color)

    #227E1C

    oklch(52% 0.157 142.2)

  9. Step 800

    800

    #165F12

    oklch(42.6% 0.129 142.3)

  10. Step 900

    900

    #1B4E17

    oklch(37.6% 0.101 142.1)

  11. Step 950

    950

    #112E0F

    oklch(27% 0.064 142.4)

Export this scale for Tailwind in the Tailwind colors tool

#227E1C with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#8172070.110
Deuteranopia (no green cones)#766A270.111
Tritanopia (no blue cones)#077A6B0.101
Achromatopsia (no color)#6D6D6D0.158

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #227E1C

    #227E1C

    oklch(52% 0.157 142.2)

  • #91439D

    #91439D

    oklch(51.9% 0.157 322.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #227E1C

    #227E1C

    oklch(52% 0.157 142.2)

  • #6B6F00

    #6B6F00

    oklch(52.1% 0.115 112.3)

  • #007B63

    #007B63

    oklch(52% 0.1 172.8)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #227E1C

    #227E1C

    oklch(52% 0.157 142.2)

  • #6E52BA

    #6E52BA

    oklch(52% 0.157 292.5)

  • #A83972

    #A83972

    oklch(52% 0.156 352.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #227E1C

    #227E1C

    oklch(52% 0.157 142.2)

  • #3464C2

    #3464C2

    oklch(52.1% 0.156 262.1)

  • #B2383D

    #B2383D

    oklch(52.1% 0.158 22.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #227E1C

    #227E1C

    oklch(52% 0.157 142.2)

  • #00739C

    #00739C

    oklch(52.2% 0.107 232.1)

  • #91439D

    #91439D

    oklch(51.9% 0.157 322.1)

  • #A24E00

    #A24E00

    oklch(52% 0.133 52.4)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #227E1C, closest first.

No curated palette has a color within ΔE 0.04 of #227E1C.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #227E1C in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.