#304F42

Closest named color: Dark Slate Gray (#2F4F4F). oklch(39.9% 0.043 165.9), rgb(48, 79, 66).

Aa

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

About this color

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

Hue familyGreens
Lightnessdark (40%)
Chromamuted (0.043)
Temperaturein between
Nearest nameDark Slate Gray (#2F4F4F)
Black text2.32:1
White text9.04:1

Values

HEX#304F42
RGBrgb(48, 79, 66)
HSLhsl(155, 24%, 25%)
OKLCHoklch(39.9% 0.043 165.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 #304F42 9.04:1 AAA Lc -95.1 Preferred for body text
Black text on #304F42 2.32:1 Fails Lc 13.3 Not readable
#304F42 text on white 9.04:1 AAA Lc 90.7 Preferred for body text
#304F42 text on black 2.32: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

    #F3F6F5

    oklch(97.1% 0.003 174.5)

  2. Step 100

    100

    #E4ECE8

    oklch(93.6% 0.01 164.9)

  3. Step 200

    200

    #CFDDD6

    oklch(88.5% 0.018 164.6)

  4. Step 300

    300

    #AEC8BC

    oklch(81% 0.033 166)

  5. Step 400

    400

    #82AB99

    oklch(70.6% 0.052 166.2)

  6. Step 500

    500

    #629780

    oklch(63.2% 0.067 165.3)

  7. Step 600

    600

    #47816A

    oklch(55.7% 0.072 166.3)

  8. Step 700

    700

    #386D58

    oklch(49.1% 0.067 165.9)

  9. Step 800

    800

    #2F5948

    oklch(42.8% 0.056 165.8)

  10. Step 900

    900 (this color)

    #304F42

    oklch(39.9% 0.043 165.9)

  11. Step 950

    950

    #192B23

    oklch(27% 0.028 164.8)

Export this scale for Tailwind in the Tailwind colors tool

#304F42 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)#4E4B410.044
Deuteranopia (no green cones)#4947430.043
Tritanopia (no blue cones)#284F4B0.016
Achromatopsia (no color)#4949490.044

Harmonies

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

Complementary

The opposite hue (180°).

  • #304F42

    #304F42

    oklch(39.9% 0.043 165.9)

  • #593E4C

    #593E4C

    oklch(39.9% 0.043 346.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #304F42

    #304F42

    oklch(39.9% 0.043 165.9)

  • #3D4D36

    #3D4D36

    oklch(39.9% 0.043 136.3)

  • #294F4F

    #294F4F

    oklch(40% 0.043 195.6)

Open the analogous palette in the generator

Split complementary

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

  • #304F42

    #304F42

    oklch(39.9% 0.043 165.9)

  • #514057

    #514057

    oklch(39.8% 0.044 317.2)

  • #5D3E3F

    #5D3E3F

    oklch(40% 0.044 17.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #304F42

    #304F42

    oklch(39.9% 0.043 165.9)

  • #45445E

    #45445E

    oklch(39.9% 0.044 286)

  • #5B4034

    #5B4034

    oklch(39.8% 0.043 44.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #304F42

    #304F42

    oklch(39.9% 0.043 165.9)

  • #38495F

    #38495F

    oklch(40% 0.043 255.1)

  • #593E4C

    #593E4C

    oklch(39.9% 0.043 346.8)

  • #55442D

    #55442D

    oklch(39.8% 0.043 74.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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