#2A5F12

Closest named color: Dark Green (#006400). oklch(43.3% 0.121 138), rgb(42, 95, 18).

Aa

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

About this color

#2A5F12 is a dark, moderately saturated green. In OKLCH its lightness is 43%, its chroma 0.121 and its hue 138°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Green (#006400), ΔE 0.030 away. White text reads best on it, at 7.65:1.

Hue familyGreens
Lightnessdark (43%)
Chromamoderately saturated (0.121)
Temperaturein between
Nearest nameDark Green (#006400)
Black text2.74:1
White text7.65:1

Values

HEX#2A5F12
RGBrgb(42, 95, 18)
HSLhsl(101, 68%, 22%)
OKLCHoklch(43.3% 0.121 138)

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 #2A5F12 7.65:1 AAA Lc -91.1 Preferred for body text
Black text on #2A5F12 2.74:1 Fails Lc 17.7 Dividers and decoration only
#2A5F12 text on white 7.65:1 AAA Lc 86.3 Fine for body text
#2A5F12 text on black 2.74:1 Fails Lc -15.8 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 800.

  1. Step 50

    50

    #F2F7F1

    oklch(97.1% 0.01 140.5)

  2. Step 100

    100

    #E3EDE0

    oklch(93.5% 0.02 138.4)

  3. Step 200

    200

    #CDE0C7

    oklch(88.6% 0.039 138.2)

  4. Step 300

    300

    #ABCCA0

    oklch(80.9% 0.07 137.9)

  5. Step 400

    400

    #7DB16B

    oklch(70.6% 0.112 138)

  6. Step 500

    500

    #5A9D41

    oklch(63.1% 0.144 138.1)

  7. Step 600

    600

    #3E871C

    oklch(55.5% 0.156 138)

  8. Step 700

    700

    #2F730C

    oklch(49.2% 0.146 138.2)

  9. Step 800

    800 (this color)

    #2A5F12

    oklch(43.3% 0.121 138)

  10. Step 900

    900

    #264D16

    oklch(37.8% 0.095 137.9)

  11. Step 950

    950

    #172D0E

    oklch(27% 0.06 137.5)

Export this scale for Tailwind in the Tailwind colors tool

#2A5F12 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)#6256030.077
Deuteranopia (no green cones)#5B521A0.077
Tritanopia (no blue cones)#265B500.084
Achromatopsia (no color)#5353530.121

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A5F12

    #2A5F12

    oklch(43.3% 0.121 138)

  • #6B377B

    #6B377B

    oklch(43.2% 0.121 317.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A5F12

    #2A5F12

    oklch(43.3% 0.121 138)

  • #565400

    #565400

    oklch(43.4% 0.094 108.1)

  • #005F47

    #005F47

    oklch(43.1% 0.087 168.2)

Open the analogous palette in the generator

Split complementary

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

  • #2A5F12

    #2A5F12

    oklch(43.3% 0.121 138)

  • #4F428E

    #4F428E

    oklch(43.2% 0.121 288.1)

  • #7E2F5C

    #7E2F5C

    oklch(43.3% 0.121 348.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A5F12

    #2A5F12

    oklch(43.3% 0.121 138)

  • #214F91

    #214F91

    oklch(43.3% 0.12 257.9)

  • #862E36

    #862E36

    oklch(43.3% 0.12 18.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A5F12

    #2A5F12

    oklch(43.3% 0.121 138)

  • #005975

    #005975

    oklch(43.3% 0.085 228)

  • #6B377B

    #6B377B

    oklch(43.2% 0.121 317.7)

  • #823700

    #823700

    oklch(43.2% 0.118 47.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2A5F12 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.