#40303E

Closest named color: Onyx (#343A40). oklch(33.3% 0.033 330.5), rgb(64, 48, 62).

Aa

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

About this color

#40303E is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.033 and its hue 331°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.036 away. White text reads best on it, at 12.27:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.033)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.71:1
White text12.27:1

Values

HEX#40303E
RGBrgb(64, 48, 62)
HSLhsl(308, 14%, 22%)
OKLCHoklch(33.3% 0.033 330.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 #40303E 12.27:1 AAA Lc -101.4 Preferred for body text
Black text on #40303E 1.71:1 Fails Lc 0.0 Not readable
#40303E text on white 12.27:1 AAA Lc 98.0 Preferred for body text
#40303E 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

    #EDE8EC

    oklch(93.6% 0.008 332.1)

  3. Step 200

    200

    #DFD6DD

    oklch(88.5% 0.014 333.1)

  4. Step 300

    300

    #CABBC8

    oklch(80.8% 0.024 330.1)

  5. Step 400

    400

    #AF98AC

    oklch(70.6% 0.039 330.2)

  6. Step 500

    500

    #9C7F98

    oklch(63.2% 0.05 330.8)

  7. Step 600

    600

    #866882

    oklch(55.6% 0.054 330.8)

  8. Step 700

    700

    #72566E

    oklch(49.1% 0.051 331.3)

  9. Step 800

    800

    #5D475A

    oklch(42.8% 0.042 330.9)

  10. Step 900

    900 (this color)

    #40303E

    oklch(33.3% 0.033 330.5)

  11. Step 950

    950

    #2C232B

    oklch(27% 0.02 329.8)

Export this scale for Tailwind in the Tailwind colors tool

#40303E 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)#30343F0.030
Deuteranopia (no green cones)#33363D0.029
Tritanopia (no blue cones)#4131350.017
Achromatopsia (no color)#3535350.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #40303E

    #40303E

    oklch(33.3% 0.033 330.5)

  • #2A3B2D

    #2A3B2D

    oklch(33.3% 0.033 149.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40303E

    #40303E

    oklch(33.3% 0.033 330.5)

  • #393245

    #393245

    oklch(33.3% 0.034 301.4)

  • #452F35

    #452F35

    oklch(33.3% 0.033 1.1)

Open the analogous palette in the generator

Split complementary

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

  • #40303E

    #40303E

    oklch(33.3% 0.033 330.5)

  • #343926

    #343926

    oklch(33.4% 0.032 120.2)

  • #223C37

    #223C37

    oklch(33.3% 0.033 180.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40303E

    #40303E

    oklch(33.3% 0.033 330.5)

  • #3C3622

    #3C3622

    oklch(33.3% 0.034 93.4)

  • #213B3F

    #213B3F

    oklch(33.3% 0.033 208.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40303E

    #40303E

    oklch(33.3% 0.033 330.5)

  • #433225

    #433225

    oklch(33.3% 0.033 58.7)

  • #2A3B2D

    #2A3B2D

    oklch(33.3% 0.033 149.7)

  • #273845

    #273845

    oklch(33.2% 0.032 241.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40303E 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.