#045F28

Closest named color: Spruce (#0A5F38). oklch(42.5% 0.116 149.5), rgb(4, 95, 40).

Aa

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

About this color

#045F28 is a dark, moderately saturated green. In OKLCH its lightness is 42%, its chroma 0.116 and its hue 150°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Spruce (#0A5F38), ΔE 0.022 away. White text reads best on it, at 7.85:1.

Hue familyGreens
Lightnessdark (42%)
Chromamoderately saturated (0.116)
Temperaturein between
Nearest nameSpruce (#0A5F38)
Black text2.67:1
White text7.85:1

Values

HEX#045F28
RGBrgb(4, 95, 40)
HSLhsl(144, 92%, 19%)
OKLCHoklch(42.5% 0.116 149.5)

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 #045F28 7.85:1 AAA Lc -91.5 Preferred for body text
Black text on #045F28 2.67:1 Fails Lc 17.3 Dividers and decoration only
#045F28 text on white 7.85:1 AAA Lc 86.7 Fine for body text
#045F28 text on black 2.67:1 Fails Lc -15.4 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

    #F1F7F2

    oklch(97% 0.009 150.7)

  2. Step 100

    100

    #E1EEE3

    oklch(93.6% 0.02 150.1)

  3. Step 200

    200

    #C9E1CC

    oklch(88.6% 0.038 148.9)

  4. Step 300

    300

    #A2CDA9

    oklch(80.8% 0.068 149.5)

  5. Step 400

    400

    #6DB47B

    oklch(70.8% 0.11 149.3)

  6. Step 500

    500

    #3FA059

    oklch(63.1% 0.139 149.5)

  7. Step 600

    600

    #0D8A3E

    oklch(55.5% 0.151 149.5)

  8. Step 700

    700

    #007532

    oklch(49.1% 0.137 149.6)

  9. Step 800

    800 (this color)

    #045F28

    oklch(42.5% 0.116 149.5)

  10. Step 900

    900

    #144E25

    oklch(37.6% 0.091 149.3)

  11. Step 950

    950

    #0E2E16

    oklch(27% 0.058 149.2)

Export this scale for Tailwind in the Tailwind colors tool

#045F28 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)#6056230.095
Deuteranopia (no green cones)#564F2C0.093
Tritanopia (no blue cones)#005D530.067
Achromatopsia (no color)#5252520.117

Harmonies

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

Complementary

The opposite hue (180°).

  • #045F28

    #045F28

    oklch(42.5% 0.116 149.5)

  • #70336D

    #70336D

    oklch(42.5% 0.117 329.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #045F28

    #045F28

    oklch(42.5% 0.116 149.5)

  • #485600

    #485600

    oklch(42.6% 0.101 120)

  • #005C50

    #005C50

    oklch(42.5% 0.077 179.9)

Open the analogous palette in the generator

Split complementary

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

  • #045F28

    #045F28

    oklch(42.5% 0.116 149.5)

  • #583C84

    #583C84

    oklch(42.4% 0.117 299.3)

  • #7E2D4C

    #7E2D4C

    oklch(42.4% 0.116 359.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #045F28

    #045F28

    oklch(42.5% 0.116 149.5)

  • #35488D

    #35488D

    oklch(42.4% 0.116 269.4)

  • #822F26

    #822F26

    oklch(42.4% 0.117 29)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #045F28

    #045F28

    oklch(42.5% 0.116 149.5)

  • #00547D

    #00547D

    oklch(42.5% 0.096 239.5)

  • #70336D

    #70336D

    oklch(42.5% 0.117 329.3)

  • #753E00

    #753E00

    oklch(42.4% 0.1 59.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #045F28 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.