#313C42

Closest named color: Onyx (#343A40). oklch(34.9% 0.018 231.8), rgb(49, 60, 66).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessdark (35%)
Chromaclose to neutral grey (0.018)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.85:1
White text11.31:1

Values

HEX#313C42
RGBrgb(49, 60, 66)
HSLhsl(201, 15%, 23%)
OKLCHoklch(34.9% 0.018 231.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 #313C42 11.31:1 AAA Lc -99.9 Preferred for body text
Black text on #313C42 1.85:1 Fails Lc 7.8 Not readable
#313C42 text on white 11.31:1 AAA Lc 96.1 Preferred for body text
#313C42 text on black 1.85: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

    #F4F6F6

    oklch(97.2% 0.002 197.1)

  2. Step 100

    100

    #E7EAEC

    oklch(93.5% 0.004 236.5)

  3. Step 200

    200

    #D4DADD

    oklch(88.5% 0.008 228.9)

  4. Step 300

    300

    #B8C2C8

    oklch(80.8% 0.014 233.8)

  5. Step 400

    400

    #94A3AC

    oklch(70.7% 0.022 234)

  6. Step 500

    500

    #798D97

    oklch(63.1% 0.027 229.4)

  7. Step 600

    600

    #627782

    oklch(55.6% 0.03 230.8)

  8. Step 700

    700

    #51646E

    oklch(49.1% 0.028 231)

  9. Step 800

    800

    #43515A

    oklch(42.6% 0.023 236.3)

  10. Step 900

    900 (this color)

    #313C42

    oklch(34.9% 0.018 231.8)

  11. Step 950

    950

    #21282B

    oklch(27.1% 0.011 225.5)

Export this scale for Tailwind in the Tailwind colors tool

#313C42 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)#393B420.013
Deuteranopia (no green cones)#3739420.013
Tritanopia (no blue cones)#2C3E3E0.013
Achromatopsia (no color)#3A3A3A0.018

Harmonies

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

Complementary

The opposite hue (180°).

  • #313C42

    #313C42

    oklch(34.9% 0.018 231.8)

  • #423832

    #423832

    oklch(34.9% 0.018 52.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313C42

    #313C42

    oklch(34.9% 0.018 231.8)

  • #2F3D3E

    #2F3D3E

    oklch(34.8% 0.018 201.7)

  • #353A44

    #353A44

    oklch(34.8% 0.019 264.3)

Open the analogous palette in the generator

Split complementary

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

  • #313C42

    #313C42

    oklch(34.9% 0.018 231.8)

  • #433736

    #433736

    oklch(34.9% 0.017 23.6)

  • #3F3930

    #3F3930

    oklch(34.8% 0.017 78)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313C42

    #313C42

    oklch(34.9% 0.018 231.8)

  • #42363B

    #42363B

    oklch(34.8% 0.019 351.1)

  • #3A3B31

    #3A3B31

    oklch(34.8% 0.017 111.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313C42

    #313C42

    oklch(34.9% 0.018 231.8)

  • #3F3740

    #3F3740

    oklch(34.9% 0.019 322.5)

  • #423832

    #423832

    oklch(34.9% 0.018 52.9)

  • #353D34

    #353D34

    oklch(35% 0.019 142.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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