#312937

Closest named color: Space Cadet (#2B2D42). oklch(29.6% 0.027 310.5), rgb(49, 41, 55).

Aa

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

About this color

#312937 is a dark close to neutral grey. In OKLCH its lightness is 30%, its chroma 0.027. It has too little chroma to lean warm or cool. The nearest named color is Space Cadet (#2B2D42), ΔE 0.022 away. White text reads best on it, at 13.97:1.

Hue familyNeutrals
Lightnessdark (30%)
Chromaclose to neutral grey (0.027)
Temperatureneutral
Nearest nameSpace Cadet (#2B2D42)
Black text1.50:1
White text13.97:1

Values

HEX#312937
RGBrgb(49, 41, 55)
HSLhsl(274, 15%, 19%)
OKLCHoklch(29.6% 0.027 310.5)

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 #312937 13.97:1 AAA Lc -103.6 Preferred for body text
Black text on #312937 1.50:1 Fails Lc 0.0 Not readable
#312937 text on white 13.97:1 AAA Lc 100.6 Preferred for body text
#312937 text on black 1.50: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 950.

  1. Step 50

    50

    #F6F5F8

    oklch(97.2% 0.004 301.4)

  2. Step 100

    100

    #ECE8EF

    oklch(93.6% 0.01 311.2)

  3. Step 200

    200

    #DDD6E2

    oklch(88.5% 0.018 311.6)

  4. Step 300

    300

    #C7BBD0

    oklch(80.8% 0.032 310.9)

  5. Step 400

    400

    #AB98B9

    oklch(70.7% 0.052 310.8)

  6. Step 500

    500

    #967EA8

    oklch(63% 0.067 310.4)

  7. Step 600

    600

    #816793

    oklch(55.6% 0.073 311)

  8. Step 700

    700

    #6D567D

    oklch(49.2% 0.067 310.9)

  9. Step 800

    800

    #584666

    oklch(42.6% 0.056 309.7)

  10. Step 900

    900

    #493B53

    oklch(37.7% 0.044 310.8)

  11. Step 950

    950 (this color)

    #312937

    oklch(29.6% 0.027 310.5)

Export this scale for Tailwind in the Tailwind colors tool

#312937 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)#272C380.019
Deuteranopia (no green cones)#282C370.018
Tritanopia (no blue cones)#302B2E0.020
Achromatopsia (no color)#2C2C2C0.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #312937

    #312937

    oklch(29.6% 0.027 310.5)

  • #283021

    #283021

    oklch(29.7% 0.028 130.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312937

    #312937

    oklch(29.6% 0.027 310.5)

  • #2A2B3A

    #2A2B3A

    oklch(29.5% 0.027 281.6)

  • #362731

    #362731

    oklch(29.4% 0.028 339.1)

Open the analogous palette in the generator

Split complementary

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

  • #312937

    #312937

    oklch(29.6% 0.027 310.5)

  • #302D1D

    #302D1D

    oklch(29.5% 0.027 98.8)

  • #213128

    #213128

    oklch(29.6% 0.027 159.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312937

    #312937

    oklch(29.6% 0.027 310.5)

  • #362A1E

    #362A1E

    oklch(29.5% 0.027 66.4)

  • #1C3130

    #1C3130

    oklch(29.5% 0.027 192)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312937

    #312937

    oklch(29.6% 0.027 310.5)

  • #392822

    #392822

    oklch(29.5% 0.028 40.3)

  • #283021

    #283021

    oklch(29.7% 0.028 130.8)

  • #1D3036

    #1D3036

    oklch(29.6% 0.027 219.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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