#40242E

Closest named color: Space Cadet (#2B2D42). oklch(30% 0.045 357.2), rgb(64, 36, 46).

Aa

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

About this color

#40242E is a dark, muted red. In OKLCH its lightness is 30%, its chroma 0.045 and its hue 357°. Its hue sits on the warm side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.052 away. White text reads best on it, at 13.90:1.

Hue familyReds
Lightnessdark (30%)
Chromamuted (0.045)
Temperaturewarm
Nearest nameSpace Cadet (#2B2D42)
Black text1.50:1
White text13.90:1

Values

HEX#40242E
RGBrgb(64, 36, 46)
HSLhsl(339, 28%, 20%)
OKLCHoklch(30% 0.045 357.2)

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 #40242E 13.90:1 AAA Lc -103.5 Preferred for body text
Black text on #40242E 1.50:1 Fails Lc 0.0 Not readable
#40242E text on white 13.90:1 AAA Lc 100.4 Preferred for body text
#40242E text on black 1.50: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 950.

  1. Step 50

    50

    #FAF3F5

    oklch(97% 0.008 357.8)

  2. Step 100

    100

    #F3E6EA

    oklch(93.6% 0.015 356.6)

  3. Step 200

    200

    #EBD1D9

    oklch(88.4% 0.031 357.2)

  4. Step 300

    300

    #DEB3C1

    oklch(80.9% 0.053 356.9)

  5. Step 400

    400

    #CC8AA1

    oklch(70.6% 0.085 357)

  6. Step 500

    500

    #BE6C8A

    oklch(63.1% 0.11 357.3)

  7. Step 600

    600

    #A95374

    oklch(55.7% 0.118 357.4)

  8. Step 700

    700

    #904361

    oklch(49.1% 0.109 357.3)

  9. Step 800

    800

    #75374F

    oklch(42.6% 0.091 357.2)

  10. Step 900

    900

    #5F3042

    oklch(37.6% 0.072 356.8)

  11. Step 950

    950 (this color)

    #40242E

    oklch(30% 0.045 357.2)

Export this scale for Tailwind in the Tailwind colors tool

#40242E 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)#28292E0.048
Deuteranopia (no green cones)#2E2E2D0.046
Tritanopia (no blue cones)#4423270.014
Achromatopsia (no color)#2C2C2C0.046

Harmonies

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

Complementary

The opposite hue (180°).

  • #40242E

    #40242E

    oklch(30% 0.045 357.2)

  • #0F352D

    #0F352D

    oklch(29.9% 0.045 176.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40242E

    #40242E

    oklch(30% 0.045 357.2)

  • #3A263A

    #3A263A

    oklch(30.1% 0.045 326.6)

  • #422521

    #422521

    oklch(30.1% 0.045 28.5)

Open the analogous palette in the generator

Split complementary

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

  • #40242E

    #40242E

    oklch(30% 0.045 357.2)

  • #1E3420

    #1E3420

    oklch(30% 0.045 146.5)

  • #0A3439

    #0A3439

    oklch(30% 0.045 206.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40242E

    #40242E

    oklch(30% 0.045 357.2)

  • #2C3115

    #2C3115

    oklch(30.1% 0.046 117.6)

  • #153142

    #153142

    oklch(30% 0.046 237.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40242E

    #40242E

    oklch(30% 0.045 357.2)

  • #372C11

    #372C11

    oklch(29.9% 0.045 87.3)

  • #0F352D

    #0F352D

    oklch(29.9% 0.045 176.7)

  • #242D45

    #242D45

    oklch(30.1% 0.046 267.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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