#40302F

Closest named color: Onyx (#343A40). oklch(32.7% 0.024 22.6), rgb(64, 48, 47).

Aa

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

About this color

#40302F 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.039 away. White text reads best on it, at 12.48:1.

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

Values

HEX#40302F
RGBrgb(64, 48, 47)
HSLhsl(4, 15%, 22%)
OKLCHoklch(32.7% 0.024 22.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 #40302F 12.48:1 AAA Lc -101.8 Preferred for body text
Black text on #40302F 1.68:1 Fails Lc 0.0 Not readable
#40302F text on white 12.48:1 AAA Lc 98.4 Preferred for body text
#40302F 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

    #F7F5F5

    oklch(97.2% 0.002 17.2)

  2. Step 100

    100

    #EDE8E8

    oklch(93.5% 0.005 17.3)

  3. Step 200

    200

    #E0D7D6

    oklch(88.6% 0.01 25.1)

  4. Step 300

    300

    #CCBCBB

    oklch(80.8% 0.018 21.9)

  5. Step 400

    400

    #B29A98

    oklch(70.7% 0.029 23.5)

  6. Step 500

    500

    #9E817F

    oklch(63% 0.036 22.8)

  7. Step 600

    600

    #896B69

    oklch(55.7% 0.039 22.8)

  8. Step 700

    700

    #745957

    oklch(49.1% 0.036 23.3)

  9. Step 800

    800

    #5F4947

    oklch(42.8% 0.03 24.4)

  10. Step 900

    900 (this color)

    #40302F

    oklch(32.7% 0.024 22.6)

  11. Step 950

    950

    #2D2423

    oklch(27% 0.014 25.5)

Export this scale for Tailwind in the Tailwind colors tool

#40302F 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)#33322F0.024
Deuteranopia (no green cones)#37352F0.022
Tritanopia (no blue cones)#442E300.010
Achromatopsia (no color)#3434340.024

Harmonies

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

Complementary

The opposite hue (180°).

  • #40302F

    #40302F

    oklch(32.7% 0.024 22.6)

  • #26383A

    #26383A

    oklch(32.6% 0.024 204.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40302F

    #40302F

    oklch(32.7% 0.024 22.6)

  • #3F3036

    #3F3036

    oklch(32.8% 0.024 352.6)

  • #3F312A

    #3F312A

    oklch(32.7% 0.024 48)

Open the analogous palette in the generator

Split complementary

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

  • #40302F

    #40302F

    oklch(32.7% 0.024 22.6)

  • #283933

    #283933

    oklch(32.8% 0.025 171)

  • #29373F

    #29373F

    oklch(32.8% 0.023 233.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40302F

    #40302F

    oklch(32.7% 0.024 22.6)

  • #2E382D

    #2E382D

    oklch(32.8% 0.023 142.6)

  • #2E3541

    #2E3541

    oklch(32.7% 0.023 261.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40302F

    #40302F

    oklch(32.7% 0.024 22.6)

  • #353628

    #353628

    oklch(32.7% 0.024 111)

  • #26383A

    #26383A

    oklch(32.6% 0.024 204.7)

  • #353340

    #353340

    oklch(32.8% 0.023 292.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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