#40313A

Closest named color: Onyx (#343A40). oklch(33.3% 0.026 341.9), rgb(64, 49, 58).

Aa

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

About this color

#40313A is a dark close to neutral grey. In OKLCH its lightness is 33%, its chroma 0.026. 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 12.22:1.

Hue familyNeutrals
Lightnessdark (33%)
Chromaclose to neutral grey (0.026)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.71:1
White text12.22:1

Values

HEX#40313A
RGBrgb(64, 49, 58)
HSLhsl(324, 13%, 22%)
OKLCHoklch(33.3% 0.026 341.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 #40313A 12.22:1 AAA Lc -101.4 Preferred for body text
Black text on #40313A 1.71:1 Fails Lc 0.0 Not readable
#40313A text on white 12.22:1 AAA Lc 97.9 Preferred for body text
#40313A text on black 1.71: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

    #F7F5F6

    oklch(97.2% 0.002 345.2)

  2. Step 100

    100

    #EDE8EB

    oklch(93.6% 0.007 340.4)

  3. Step 200

    200

    #DFD6DB

    oklch(88.5% 0.012 342.7)

  4. Step 300

    300

    #CABCC4

    oklch(80.9% 0.019 342.1)

  5. Step 400

    400

    #AF99A6

    oklch(70.6% 0.032 341.7)

  6. Step 500

    500

    #9B8090

    oklch(63% 0.04 342)

  7. Step 600

    600

    #86697B

    oklch(55.5% 0.045 341)

  8. Step 700

    700

    #715867

    oklch(49.1% 0.04 342)

  9. Step 800

    800

    #5C4854

    oklch(42.7% 0.033 341.9)

  10. Step 900

    900 (this color)

    #40313A

    oklch(33.3% 0.026 341.9)

  11. Step 950

    950

    #2C2329

    oklch(26.9% 0.017 338.5)

Export this scale for Tailwind in the Tailwind colors tool

#40313A 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)#32343A0.026
Deuteranopia (no green cones)#35363A0.024
Tritanopia (no blue cones)#4231340.011
Achromatopsia (no color)#3535350.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #40313A

    #40313A

    oklch(33.3% 0.026 341.9)

  • #2A3B32

    #2A3B32

    oklch(33.4% 0.027 161.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40313A

    #40313A

    oklch(33.3% 0.026 341.9)

  • #3B3240

    #3B3240

    oklch(33.2% 0.027 313.5)

  • #433133

    #433133

    oklch(33.4% 0.026 11.2)

Open the analogous palette in the generator

Split complementary

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

  • #40313A

    #40313A

    oklch(33.3% 0.026 341.9)

  • #31392B

    #31392B

    oklch(33.2% 0.026 132)

  • #263B3A

    #263B3A

    oklch(33.4% 0.027 192.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40313A

    #40313A

    oklch(33.3% 0.026 341.9)

  • #393727

    #393727

    oklch(33.4% 0.027 101.7)

  • #273940

    #273940

    oklch(33.2% 0.026 224)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40313A

    #40313A

    oklch(33.3% 0.026 341.9)

  • #3F3427

    #3F3427

    oklch(33.3% 0.027 71.4)

  • #2A3B32

    #2A3B32

    oklch(33.4% 0.027 161.4)

  • #2D3744

    #2D3744

    oklch(33.3% 0.027 255.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40313A 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.