#313C30

Closest named color: Onyx (#343A40). oklch(34.2% 0.025 142.8), rgb(49, 60, 48).

Aa

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

About this color

#313C30 is a dark close to neutral grey. In OKLCH its lightness is 34%, its chroma 0.025. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.032 away. White text reads best on it, at 11.54:1.

Hue familyNeutrals
Lightnessdark (34%)
Chromaclose to neutral grey (0.025)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.81:1
White text11.54:1

Values

HEX#313C30
RGBrgb(49, 60, 48)
HSLhsl(115, 11%, 21%)
OKLCHoklch(34.2% 0.025 142.8)

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 #313C30 11.54:1 AAA Lc -100.3 Preferred for body text
Black text on #313C30 1.81:1 Fails Lc 0.0 Not readable
#313C30 text on white 11.54:1 AAA Lc 96.6 Preferred for body text
#313C30 text on black 1.81:1 Fails Lc 0.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

    #F4F6F4

    oklch(97.1% 0.003 145.5)

  2. Step 100

    100

    #E8EBE7

    oklch(93.7% 0.006 137.8)

  3. Step 200

    200

    #D5DBD5

    oklch(88.5% 0.01 145.5)

  4. Step 300

    300

    #BAC4B9

    oklch(80.9% 0.019 142.8)

  5. Step 400

    400

    #96A695

    oklch(70.8% 0.03 143.6)

  6. Step 500

    500

    #7C907A

    oklch(63.1% 0.04 142.6)

  7. Step 600

    600

    #657A63

    oklch(55.6% 0.043 142.7)

  8. Step 700

    700

    #546752

    oklch(49.2% 0.04 142.4)

  9. Step 800

    800

    #455443

    oklch(42.8% 0.033 141.8)

  10. Step 900

    900 (this color)

    #313C30

    oklch(34.2% 0.025 142.8)

  11. Step 950

    950

    #222921

    oklch(27.1% 0.018 141.6)

Export this scale for Tailwind in the Tailwind colors tool

#313C30 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)#3D3A2F0.020
Deuteranopia (no green cones)#3B39310.019
Tritanopia (no blue cones)#303B390.017
Achromatopsia (no color)#3939390.025

Harmonies

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

Complementary

The opposite hue (180°).

  • #313C30

    #313C30

    oklch(34.2% 0.025 142.8)

  • #3F3440

    #3F3440

    oklch(34.2% 0.025 323.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313C30

    #313C30

    oklch(34.2% 0.025 142.8)

  • #383A2B

    #383A2B

    oklch(34.2% 0.025 113.9)

  • #2B3D37

    #2B3D37

    oklch(34.2% 0.025 172.2)

Open the analogous palette in the generator

Split complementary

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

  • #313C30

    #313C30

    oklch(34.2% 0.025 142.8)

  • #393645

    #393645

    oklch(34.2% 0.026 294.1)

  • #43333A

    #43333A

    oklch(34.1% 0.026 350.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313C30

    #313C30

    oklch(34.2% 0.025 142.8)

  • #323946

    #323946

    oklch(34.3% 0.025 262.8)

  • #453332

    #453332

    oklch(34.1% 0.026 22.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313C30

    #313C30

    oklch(34.2% 0.025 142.8)

  • #2B3B44

    #2B3B44

    oklch(34.2% 0.026 233.2)

  • #3F3440

    #3F3440

    oklch(34.2% 0.025 323.5)

  • #43352C

    #43352C

    oklch(34.2% 0.025 54.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #313C30 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.