#304340

Closest named color: Charcoal Grey (#3C4142). oklch(36.6% 0.025 184.2), rgb(48, 67, 64).

Aa

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

About this color

#304340 is a dark close to neutral grey. In OKLCH its lightness is 37%, its chroma 0.025. It has too little chroma to lean warm or cool. The nearest named color is Charcoal Grey (#3C4142), ΔE 0.020 away. White text reads best on it, at 10.48:1.

Hue familyNeutrals
Lightnessdark (37%)
Chromaclose to neutral grey (0.025)
Temperatureneutral
Nearest nameCharcoal Grey (#3C4142)
Black text2.00:1
White text10.48:1

Values

HEX#304340
RGBrgb(48, 67, 64)
HSLhsl(171, 17%, 23%)
OKLCHoklch(36.6% 0.025 184.2)

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 #304340 10.48:1 AAA Lc -98.3 Preferred for body text
Black text on #304340 2.00:1 Fails Lc 9.6 Not readable
#304340 text on white 10.48:1 AAA Lc 94.3 Preferred for body text
#304340 text on black 2.00:1 Fails Lc -8.3 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

    #F4F6F5

    oklch(97.1% 0.002 165.1)

  2. Step 100

    100

    #E6EBEA

    oklch(93.6% 0.006 183)

  3. Step 200

    200

    #D2DBDA

    oklch(88.4% 0.01 189)

  4. Step 300

    300

    #B4C5C2

    oklch(81% 0.019 184.1)

  5. Step 400

    400

    #8DA7A3

    oklch(70.7% 0.029 185.2)

  6. Step 500

    500

    #70918C

    oklch(63% 0.038 184.9)

  7. Step 600

    600

    #587B76

    oklch(55.5% 0.04 185.1)

  8. Step 700

    700

    #486863

    oklch(49.1% 0.038 184)

  9. Step 800

    800

    #3B5551

    oklch(42.7% 0.032 184.3)

  10. Step 900

    900 (this color)

    #304340

    oklch(36.6% 0.025 184.2)

  11. Step 950

    950

    #1E2927

    oklch(27% 0.016 182.8)

Export this scale for Tailwind in the Tailwind colors tool

#304340 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)#4141400.026
Deuteranopia (no green cones)#3E3E400.026
Tritanopia (no blue cones)#2A44420.008
Achromatopsia (no color)#3F3F3F0.025

Harmonies

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

Complementary

The opposite hue (180°).

  • #304340

    #304340

    oklch(36.6% 0.025 184.2)

  • #4A393D

    #4A393D

    oklch(36.5% 0.025 2.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #304340

    #304340

    oklch(36.6% 0.025 184.2)

  • #354339

    #354339

    oklch(36.7% 0.025 154)

  • #304247

    #304247

    oklch(36.6% 0.024 216.7)

Open the analogous palette in the generator

Split complementary

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

  • #304340

    #304340

    oklch(36.6% 0.025 184.2)

  • #473A44

    #473A44

    oklch(36.6% 0.024 334.2)

  • #4B3A36

    #4B3A36

    oklch(36.6% 0.025 33.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #304340

    #304340

    oklch(36.6% 0.025 184.2)

  • #413C49

    #413C49

    oklch(36.6% 0.023 302.8)

  • #483C31

    #483C31

    oklch(36.5% 0.025 64.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #304340

    #304340

    oklch(36.6% 0.025 184.2)

  • #3A3E4C

    #3A3E4C

    oklch(36.6% 0.025 272.6)

  • #4A393D

    #4A393D

    oklch(36.5% 0.025 2.7)

  • #433F30

    #433F30

    oklch(36.7% 0.025 94.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #304340 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.