#40142D

Closest named color: Aubergine (#3D0734). oklch(27.1% 0.076 348.2), rgb(64, 20, 45).

Aa

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

About this color

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

Hue familyReds
Lightnessdark (27%)
Chromamoderately saturated (0.076)
Temperaturewarm
Nearest nameAubergine (#3D0734)
Black text1.35:1
White text15.48:1

Values

HEX#40142D
RGBrgb(64, 20, 45)
HSLhsl(326, 52%, 16%)
OKLCHoklch(27.1% 0.076 348.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 #40142D 15.48:1 AAA Lc -104.8 Preferred for body text
Black text on #40142D 1.35:1 Fails Lc 0.0 Not readable
#40142D text on white 15.48:1 AAA Lc 102.0 Preferred for body text
#40142D text on black 1.35: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

    #F8E3ED

    oklch(93.6% 0.026 347.1)

  3. Step 200

    200

    #F3CCDF

    oklch(88.4% 0.05 347.3)

  4. Step 300

    300

    #EDA9CB

    oklch(80.9% 0.09 347.9)

  5. Step 400

    400

    #E178B0

    oklch(70.7% 0.145 348.2)

  6. Step 500

    500

    #D5519C

    oklch(63.2% 0.183 348.5)

  7. Step 600

    600

    #C02D87

    oklch(55.6% 0.2 348.2)

  8. Step 700

    700

    #A51D72

    oklch(49% 0.186 348.3)

  9. Step 800

    800

    #861C5D

    oklch(42.6% 0.154 348.2)

  10. Step 900

    900

    #6C1F4C

    oklch(37.6% 0.12 348.4)

  11. Step 950

    950 (this color)

    #40142D

    oklch(27.1% 0.076 348.2)

Export this scale for Tailwind in the Tailwind colors tool

#40142D 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)#191F2E0.083
Deuteranopia (no green cones)#25272C0.075
Tritanopia (no blue cones)#45131E0.030
Achromatopsia (no color)#2424240.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #40142D

    #40142D

    oklch(27.1% 0.076 348.2)

  • #002F22

    #002F22

    oklch(27.1% 0.054 168.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40142D

    #40142D

    oklch(27.1% 0.076 348.2)

  • #36183E

    #36183E

    oklch(27.1% 0.077 318.8)

  • #451318

    #451318

    oklch(27.1% 0.077 18.1)

Open the analogous palette in the generator

Split complementary

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

  • #40142D

    #40142D

    oklch(27.1% 0.076 348.2)

  • #112F05

    #112F05

    oklch(27.2% 0.076 138.2)

  • #002D2F

    #002D2F

    oklch(27% 0.046 199.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40142D

    #40142D

    oklch(27.1% 0.076 348.2)

  • #2A2800

    #2A2800

    oklch(27% 0.058 106.8)

  • #002B3B

    #002B3B

    oklch(27% 0.053 228.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40142D

    #40142D

    oklch(27.1% 0.076 348.2)

  • #362300

    #362300

    oklch(27.3% 0.057 78.4)

  • #002F22

    #002F22

    oklch(27.1% 0.054 168.9)

  • #0C264B

    #0C264B

    oklch(27.2% 0.076 257.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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