#313342

Closest named color: Gunmetal (#293241). oklch(32.6% 0.027 278.9), rgb(49, 51, 66).

Aa

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

About this color

#313342 is a dark close to neutral grey. In OKLCH its lightness is 33%, its chroma 0.027. It has too little chroma to lean warm or cool. The nearest named color is Gunmetal (#293241), ΔE 0.014 away. White text reads best on it, at 12.47:1.

Hue familyNeutrals
Lightnessdark (33%)
Chromaclose to neutral grey (0.027)
Temperatureneutral
Nearest nameGunmetal (#293241)
Black text1.68:1
White text12.47:1

Values

HEX#313342
RGBrgb(49, 51, 66)
HSLhsl(233, 15%, 23%)
OKLCHoklch(32.6% 0.027 278.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 #313342 12.47:1 AAA Lc -101.8 Preferred for body text
Black text on #313342 1.68:1 Fails Lc 0.0 Not readable
#313342 text on white 12.47:1 AAA Lc 98.4 Preferred for body text
#313342 text on black 1.68: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

    #F5F5F7

    oklch(97.1% 0.003 286.4)

  2. Step 100

    100

    #E9E9EE

    oklch(93.5% 0.007 286.3)

  3. Step 200

    200

    #D7D8E1

    oklch(88.4% 0.012 281.1)

  4. Step 300

    300

    #BDC0CE

    oklch(81% 0.02 276.3)

  5. Step 400

    400

    #9C9FB5

    oklch(70.7% 0.032 279.4)

  6. Step 500

    500

    #8487A3

    oklch(63.1% 0.042 280.3)

  7. Step 600

    600

    #6D718E

    oklch(55.6% 0.045 278.7)

  8. Step 700

    700

    #5B5F78

    oklch(49.2% 0.04 277.7)

  9. Step 800

    800

    #4B4D62

    oklch(42.7% 0.035 280.5)

  10. Step 900

    900 (this color)

    #313342

    oklch(32.6% 0.027 278.9)

  11. Step 950

    950

    #24262F

    oklch(27% 0.017 275.4)

Export this scale for Tailwind in the Tailwind colors tool

#313342 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)#2F34430.004
Deuteranopia (no green cones)#2E33420.005
Tritanopia (no blue cones)#2D36380.025
Achromatopsia (no color)#3434340.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #313342

    #313342

    oklch(32.6% 0.027 278.9)

  • #383525

    #383525

    oklch(32.7% 0.027 98.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313342

    #313342

    oklch(32.6% 0.027 278.9)

  • #2A3642

    #2A3642

    oklch(32.7% 0.027 248.7)

  • #38313F

    #38313F

    oklch(32.6% 0.026 307.6)

Open the analogous palette in the generator

Split complementary

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

  • #313342

    #313342

    oklch(32.6% 0.027 278.9)

  • #3D3225

    #3D3225

    oklch(32.5% 0.027 71.3)

  • #303728

    #303728

    oklch(32.5% 0.027 128.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313342

    #313342

    oklch(32.6% 0.027 278.9)

  • #41302A

    #41302A

    oklch(32.7% 0.027 40.3)

  • #29392F

    #29392F

    oklch(32.7% 0.027 157.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313342

    #313342

    oklch(32.6% 0.027 278.9)

  • #412F31

    #412F31

    oklch(32.7% 0.027 11.2)

  • #383525

    #383525

    oklch(32.7% 0.027 98.7)

  • #243937

    #243937

    oklch(32.6% 0.027 188.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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