#304A38

Closest named color: Dark Slate Gray (#2F4F4F). oklch(38.2% 0.044 153.7), rgb(48, 74, 56).

Aa

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

About this color

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

Hue familyGreens
Lightnessdark (38%)
Chromamuted (0.044)
Temperaturein between
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.16:1
White text9.71:1

Values

HEX#304A38
RGBrgb(48, 74, 56)
HSLhsl(138, 21%, 24%)
OKLCHoklch(38.2% 0.044 153.7)

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 #304A38 9.71:1 AAA Lc -96.7 Preferred for body text
Black text on #304A38 2.16:1 Fails Lc 11.5 Not readable
#304A38 text on white 9.71:1 AAA Lc 92.5 Preferred for body text
#304A38 text on black 2.16:1 Fails Lc -10.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

    #F3F6F4

    oklch(97% 0.004 157.2)

  2. Step 100

    100

    #E5ECE7

    oklch(93.6% 0.01 155.1)

  3. Step 200

    200

    #D0DDD4

    oklch(88.5% 0.019 155.8)

  4. Step 300

    300

    #B1C7B7

    oklch(80.8% 0.033 154)

  5. Step 400

    400

    #88AB91

    oklch(70.8% 0.054 152.8)

  6. Step 500

    500

    #699677

    oklch(63.2% 0.068 154)

  7. Step 600

    600

    #50805F

    oklch(55.6% 0.073 153.4)

  8. Step 700

    700

    #406C4F

    oklch(49.1% 0.068 154.3)

  9. Step 800

    800

    #355840

    oklch(42.6% 0.057 153.4)

  10. Step 900

    900 (this color)

    #304A38

    oklch(38.2% 0.044 153.7)

  11. Step 950

    950

    #1C2B20

    oklch(27.2% 0.029 152.5)

Export this scale for Tailwind in the Tailwind colors tool

#304A38 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)#4A46370.040
Deuteranopia (no green cones)#4643390.039
Tritanopia (no blue cones)#2C49450.023
Achromatopsia (no color)#4444440.044

Harmonies

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

Complementary

The opposite hue (180°).

  • #304A38

    #304A38

    oklch(38.2% 0.044 153.7)

  • #523A4D

    #523A4D

    oklch(38.3% 0.045 334)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #304A38

    #304A38

    oklch(38.2% 0.044 153.7)

  • #3E472C

    #3E472C

    oklch(38.2% 0.045 123.5)

  • #254B45

    #254B45

    oklch(38.3% 0.045 182.5)

Open the analogous palette in the generator

Split complementary

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

  • #304A38

    #304A38

    oklch(38.2% 0.044 153.7)

  • #483D56

    #483D56

    oklch(38.2% 0.044 304.5)

  • #573940

    #573940

    oklch(38.2% 0.044 4.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #304A38

    #304A38

    oklch(38.2% 0.044 153.7)

  • #3B415B

    #3B415B

    oklch(38.1% 0.045 274)

  • #583A33

    #583A33

    oklch(38.1% 0.045 33.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #304A38

    #304A38

    oklch(38.2% 0.044 153.7)

  • #2E4659

    #2E4659

    oklch(38.3% 0.044 243.1)

  • #523A4D

    #523A4D

    oklch(38.3% 0.045 334)

  • #543E2A

    #543E2A

    oklch(38.3% 0.044 63.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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