#045F38

Closest named color: Spruce (#0A5F38). oklch(42.8% 0.1 156.9), rgb(4, 95, 56).

Aa

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

About this color

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

Hue familyGreens
Lightnessdark (43%)
Chromamoderately saturated (0.100)
Temperaturein between
Nearest nameSpruce (#0A5F38)
Black text2.69:1
White text7.78:1

Values

HEX#045F38
RGBrgb(4, 95, 56)
HSLhsl(154, 92%, 19%)
OKLCHoklch(42.8% 0.1 156.9)

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 #045F38 7.78:1 AAA Lc -91.3 Preferred for body text
Black text on #045F38 2.69:1 Fails Lc 17.5 Dividers and decoration only
#045F38 text on white 7.78:1 AAA Lc 86.5 Fine for body text
#045F38 text on black 2.69:1 Fails Lc -15.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 800.

  1. Step 50

    50

    #F1F7F3

    oklch(97.1% 0.008 157.1)

  2. Step 100

    100

    #E1EDE5

    oklch(93.5% 0.017 156.9)

  3. Step 200

    200

    #C9E0D1

    oklch(88.5% 0.032 157.1)

  4. Step 300

    300

    #A2CDB2

    oklch(81% 0.059 157.2)

  5. Step 400

    400

    #6DB289

    oklch(70.6% 0.093 156.9)

  6. Step 500

    500

    #3E9F6C

    oklch(63.1% 0.12 157.2)

  7. Step 600

    600

    #098953

    oklch(55.5% 0.13 156.9)

  8. Step 700

    700

    #007445

    oklch(49.2% 0.117 157)

  9. Step 800

    800 (this color)

    #045F38

    oklch(42.8% 0.1 156.9)

  10. Step 900

    900

    #134E30

    oklch(37.8% 0.079 156.6)

  11. Step 950

    950

    #0E2E1C

    oklch(27.1% 0.051 156)

Export this scale for Tailwind in the Tailwind colors tool

#045F38 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)#5E56350.091
Deuteranopia (no green cones)#554F3B0.091
Tritanopia (no blue cones)#005E550.047
Achromatopsia (no color)#5252520.101

Harmonies

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

Complementary

The opposite hue (180°).

  • #045F38

    #045F38

    oklch(42.8% 0.1 156.9)

  • #713763

    #713763

    oklch(42.8% 0.101 337.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #045F38

    #045F38

    oklch(42.8% 0.1 156.9)

  • #405910

    #405910

    oklch(42.9% 0.101 127.2)

  • #005C56

    #005C56

    oklch(42.8% 0.075 187.1)

Open the analogous palette in the generator

Split complementary

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

  • #045F38

    #045F38

    oklch(42.8% 0.1 156.9)

  • #5E3F7A

    #5E3F7A

    oklch(42.9% 0.1 306.9)

  • #7B3446

    #7B3446

    oklch(42.7% 0.1 6.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #045F38

    #045F38

    oklch(42.8% 0.1 156.9)

  • #424885

    #424885

    oklch(42.7% 0.1 277)

  • #7C3824

    #7C3824

    oklch(42.7% 0.1 37.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #045F38

    #045F38

    oklch(42.8% 0.1 156.9)

  • #145383

    #145383

    oklch(42.9% 0.1 246.7)

  • #713763

    #713763

    oklch(42.8% 0.101 337.1)

  • #714300

    #714300

    oklch(42.8% 0.095 66.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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