#304D40

Closest named color: Dark Slate Gray (#2F4F4F). oklch(39.3% 0.041 164.5), rgb(48, 77, 64).

Aa

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

About this color

#304D40 is a dark, muted green. In OKLCH its lightness is 39%, its chroma 0.041 and its hue 165°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Gray (#2F4F4F), ΔE 0.024 away. White text reads best on it, at 9.28:1.

Hue familyGreens
Lightnessdark (39%)
Chromamuted (0.041)
Temperaturein between
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.26:1
White text9.28:1

Values

HEX#304D40
RGBrgb(48, 77, 64)
HSLhsl(153, 23%, 25%)
OKLCHoklch(39.3% 0.041 164.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 #304D40 9.28:1 AAA Lc -95.7 Preferred for body text
Black text on #304D40 2.26:1 Fails Lc 12.6 Not readable
#304D40 text on white 9.28:1 AAA Lc 91.4 Preferred for body text
#304D40 text on black 2.26:1 Fails Lc -11.0 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

    #F3F6F5

    oklch(97.1% 0.003 174.5)

  2. Step 100

    100

    #E5ECE8

    oklch(93.7% 0.009 161.3)

  3. Step 200

    200

    #CFDDD6

    oklch(88.5% 0.018 164.6)

  4. Step 300

    300

    #AFC7BB

    oklch(80.8% 0.031 164.1)

  5. Step 400

    400

    #84AB99

    oklch(70.7% 0.05 165.1)

  6. Step 500

    500

    #649680

    oklch(63.1% 0.063 165.1)

  7. Step 600

    600

    #4A8069

    oklch(55.5% 0.069 164.9)

  8. Step 700

    700

    #3B6C57

    oklch(49% 0.064 164.5)

  9. Step 800

    800

    #315847

    oklch(42.6% 0.053 164.4)

  10. Step 900

    900 (this color)

    #304D40

    oklch(39.3% 0.041 164.5)

  11. Step 950

    950

    #1A2B23

    oklch(27.1% 0.027 163.6)

Export this scale for Tailwind in the Tailwind colors tool

#304D40 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)#4C493F0.041
Deuteranopia (no green cones)#4746410.039
Tritanopia (no blue cones)#294D490.016
Achromatopsia (no color)#4747470.042

Harmonies

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

Complementary

The opposite hue (180°).

  • #304D40

    #304D40

    oklch(39.3% 0.041 164.5)

  • #563D4B

    #563D4B

    oklch(39.3% 0.041 344.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #304D40

    #304D40

    oklch(39.3% 0.041 164.5)

  • #3C4B34

    #3C4B34

    oklch(39.3% 0.042 135)

  • #294D4C

    #294D4C

    oklch(39.3% 0.042 193.3)

Open the analogous palette in the generator

Split complementary

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

  • #304D40

    #304D40

    oklch(39.3% 0.041 164.5)

  • #4E3F55

    #4E3F55

    oklch(39.2% 0.041 314.9)

  • #5A3D3F

    #5A3D3F

    oklch(39.4% 0.041 14.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #304D40

    #304D40

    oklch(39.3% 0.041 164.5)

  • #43435C

    #43435C

    oklch(39.3% 0.042 284.3)

  • #593F33

    #593F33

    oklch(39.3% 0.042 45.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #304D40

    #304D40

    oklch(39.3% 0.041 164.5)

  • #36475C

    #36475C

    oklch(39.2% 0.042 254)

  • #563D4B

    #563D4B

    oklch(39.3% 0.041 344.5)

  • #53432C

    #53432C

    oklch(39.3% 0.042 76.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #304D40 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.