#04540B

Closest named color: Forest (#0B5509). oklch(38.8% 0.125 143.5), rgb(4, 84, 11).

Aa

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

About this color

#04540B is a dark, moderately saturated green. In OKLCH its lightness is 39%, its chroma 0.125 and its hue 143°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Forest (#0B5509), ΔE 0.005 away. White text reads best on it, at 9.21:1.

Hue familyGreens
Lightnessdark (39%)
Chromamoderately saturated (0.125)
Temperaturein between
Nearest nameForest (#0B5509)
Black text2.27:1
White text9.21:1

Values

HEX#04540B
RGBrgb(4, 84, 11)
HSLhsl(125, 91%, 17%)
OKLCHoklch(38.8% 0.125 143.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 #04540B 9.21:1 AAA Lc -95.1 Preferred for body text
Black text on #04540B 2.27:1 Fails Lc 13.3 Not readable
#04540B text on white 9.21:1 AAA Lc 90.7 Preferred for body text
#04540B text on black 2.27:1 Fails Lc -11.6 Not readable

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 900.

  1. Step 50

    50

    #F1F8F0

    oklch(97.2% 0.013 141.8)

  2. Step 100

    100

    #E0EFDF

    oklch(93.7% 0.027 143.6)

  3. Step 200

    200

    #C6E3C4

    oklch(88.6% 0.052 143.4)

  4. Step 300

    300

    #9CD19A

    oklch(80.9% 0.094 143.8)

  5. Step 400

    400

    #61B860

    oklch(70.7% 0.15 143.6)

  6. Step 500

    500

    #25A52C

    oklch(63.2% 0.192 143.5)

  7. Step 600

    600

    #008C14

    oklch(55.5% 0.183 143.5)

  8. Step 700

    700

    #00760F

    oklch(49.1% 0.162 143.5)

  9. Step 800

    800

    #00610A

    oklch(42.7% 0.141 143.4)

  10. Step 900

    900 (this color)

    #04540B

    oklch(38.8% 0.125 143.5)

  11. Step 950

    950

    #073008

    oklch(27.1% 0.08 143.3)

Export this scale for Tailwind in the Tailwind colors tool

#04540B 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)#564B000.090
Deuteranopia (no green cones)#4E45140.090
Tritanopia (no blue cones)#0051470.081
Achromatopsia (no color)#4848480.126

Harmonies

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

Complementary

The opposite hue (180°).

  • #04540B

    #04540B

    oklch(38.8% 0.125 143.5)

  • #63276A

    #63276A

    oklch(38.8% 0.126 323.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #04540B

    #04540B

    oklch(38.8% 0.125 143.5)

  • #454900

    #454900

    oklch(38.8% 0.087 113.3)

  • #005141

    #005141

    oklch(38.8% 0.074 173.5)

Open the analogous palette in the generator

Split complementary

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

  • #04540B

    #04540B

    oklch(38.8% 0.125 143.5)

  • #493280

    #493280

    oklch(38.7% 0.126 293.2)

  • #731F4A

    #731F4A

    oklch(38.8% 0.125 353.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #04540B

    #04540B

    oklch(38.8% 0.125 143.5)

  • #1F3F86

    #1F3F86

    oklch(38.7% 0.125 263.4)

  • #791F22

    #791F22

    oklch(38.7% 0.124 23.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #04540B

    #04540B

    oklch(38.8% 0.125 143.5)

  • #004B68

    #004B68

    oklch(38.8% 0.08 232.8)

  • #63276A

    #63276A

    oklch(38.8% 0.126 323.4)

  • #6B3200

    #6B3200

    oklch(38.7% 0.098 53.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #04540B 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.