#40302D

Closest named color: Onyx (#343A40). oklch(32.6% 0.024 30.6), rgb(64, 48, 45).

Aa

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

About this color

#40302D is a dark close to neutral grey. In OKLCH its lightness is 33%, its chroma 0.024. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.040 away. White text reads best on it, at 12.50:1.

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

Values

HEX#40302D
RGBrgb(64, 48, 45)
HSLhsl(9, 17%, 21%)
OKLCHoklch(32.6% 0.024 30.6)

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 #40302D 12.50:1 AAA Lc -101.8 Preferred for body text
Black text on #40302D 1.67:1 Fails Lc 0.0 Not readable
#40302D text on white 12.50:1 AAA Lc 98.4 Preferred for body text
#40302D text on black 1.67: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

    #F7F5F4

    oklch(97.1% 0.003 48.7)

  2. Step 100

    100

    #EDE9E8

    oklch(93.7% 0.005 34.3)

  3. Step 200

    200

    #E0D7D5

    oklch(88.6% 0.01 32.5)

  4. Step 300

    300

    #CCBDBA

    oklch(81% 0.018 31.1)

  5. Step 400

    400

    #B29A96

    oklch(70.6% 0.029 29)

  6. Step 500

    500

    #9F827C

    oklch(63.2% 0.037 31.7)

  7. Step 600

    600

    #896B65

    oklch(55.6% 0.04 31.4)

  8. Step 700

    700

    #755954

    oklch(49.1% 0.038 30.1)

  9. Step 800

    800

    #5F4945

    oklch(42.7% 0.031 30.2)

  10. Step 900

    900 (this color)

    #40302D

    oklch(32.6% 0.024 30.6)

  11. Step 950

    950

    #2E2422

    oklch(27.1% 0.016 31.3)

Export this scale for Tailwind in the Tailwind colors tool

#40302D 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)#33322D0.024
Deuteranopia (no green cones)#37352D0.022
Tritanopia (no blue cones)#442E2F0.011
Achromatopsia (no color)#3434340.024

Harmonies

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

Complementary

The opposite hue (180°).

  • #40302D

    #40302D

    oklch(32.6% 0.024 30.6)

  • #26383B

    #26383B

    oklch(32.6% 0.024 208.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40302D

    #40302D

    oklch(32.6% 0.024 30.6)

  • #3F2F34

    #3F2F34

    oklch(32.5% 0.025 358)

  • #3E3228

    #3E3228

    oklch(32.7% 0.024 61.6)

Open the analogous palette in the generator

Split complementary

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

  • #40302D

    #40302D

    oklch(32.6% 0.024 30.6)

  • #273935

    #273935

    oklch(32.8% 0.024 179.4)

  • #293640

    #293640

    oklch(32.5% 0.025 241.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40302D

    #40302D

    oklch(32.6% 0.024 30.6)

  • #2C382E

    #2C382E

    oklch(32.6% 0.024 149.8)

  • #303441

    #303441

    oklch(32.7% 0.024 271.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40302D

    #40302D

    oklch(32.6% 0.024 30.6)

  • #333629

    #333629

    oklch(32.6% 0.023 118.2)

  • #26383B

    #26383B

    oklch(32.6% 0.024 208.9)

  • #36323F

    #36323F

    oklch(32.7% 0.023 299.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40302D 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.