#40162E

Closest named color: Aubergine (#3D0734). oklch(27.5% 0.073 347.6), rgb(64, 22, 46).

Aa

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

About this color

#40162E is a dark, moderately saturated red. In OKLCH its lightness is 27%, its chroma 0.073 and its hue 348°. Its hue sits on the warm side of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.037 away. White text reads best on it, at 15.30:1.

Hue familyReds
Lightnessdark (27%)
Chromamoderately saturated (0.073)
Temperaturewarm
Nearest nameAubergine (#3D0734)
Black text1.37:1
White text15.30:1

Values

HEX#40162E
RGBrgb(64, 22, 46)
HSLhsl(326, 49%, 17%)
OKLCHoklch(27.5% 0.073 347.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 #40162E 15.30:1 AAA Lc -104.7 Preferred for body text
Black text on #40162E 1.37:1 Fails Lc 0.0 Not readable
#40162E text on white 15.30:1 AAA Lc 101.9 Preferred for body text
#40162E text on black 1.37: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

    #FCF2F7

    oklch(97% 0.013 345.5)

  2. Step 100

    100

    #F7E3ED

    oklch(93.5% 0.025 345.8)

  3. Step 200

    200

    #F2CDDF

    oklch(88.5% 0.048 347.2)

  4. Step 300

    300

    #EBAACB

    oklch(80.9% 0.087 347.4)

  5. Step 400

    400

    #DE7AB0

    oklch(70.6% 0.139 347.6)

  6. Step 500

    500

    #D2549D

    oklch(63.1% 0.177 347.5)

  7. Step 600

    600

    #BD3387

    oklch(55.6% 0.192 347.8)

  8. Step 700

    700

    #A32473

    oklch(49.2% 0.178 347.7)

  9. Step 800

    800

    #84205D

    oklch(42.6% 0.148 347.8)

  10. Step 900

    900

    #6A214D

    oklch(37.6% 0.116 346.9)

  11. Step 950

    950 (this color)

    #40162E

    oklch(27.5% 0.073 347.6)

Export this scale for Tailwind in the Tailwind colors tool

#40162E 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)#1B212F0.078
Deuteranopia (no green cones)#26282D0.072
Tritanopia (no blue cones)#4515200.028
Achromatopsia (no color)#2525250.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #40162E

    #40162E

    oklch(27.5% 0.073 347.6)

  • #003022

    #003022

    oklch(27.5% 0.056 167.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40162E

    #40162E

    oklch(27.5% 0.073 347.6)

  • #361A3F

    #361A3F

    oklch(27.5% 0.074 317.4)

  • #45151A

    #45151A

    oklch(27.5% 0.074 17.2)

Open the analogous palette in the generator

Split complementary

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

  • #40162E

    #40162E

    oklch(27.5% 0.073 347.6)

  • #142F07

    #142F07

    oklch(27.4% 0.072 137.3)

  • #002E30

    #002E30

    oklch(27.4% 0.047 199.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40162E

    #40162E

    oklch(27.5% 0.073 347.6)

  • #2B2900

    #2B2900

    oklch(27.4% 0.059 106.9)

  • #002C3C

    #002C3C

    oklch(27.4% 0.054 228.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40162E

    #40162E

    oklch(27.5% 0.073 347.6)

  • #372300

    #372300

    oklch(27.4% 0.057 76.9)

  • #003022

    #003022

    oklch(27.5% 0.056 167.7)

  • #0E274B

    #0E274B

    oklch(27.5% 0.074 257.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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