#40142F

Closest named color: Aubergine (#3D0734). oklch(27.2% 0.077 345.6), rgb(64, 20, 47).

Aa

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

About this color

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

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

Values

HEX#40142F
RGBrgb(64, 20, 47)
HSLhsl(323, 52%, 16%)
OKLCHoklch(27.2% 0.077 345.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 #40142F 15.45:1 AAA Lc -104.7 Preferred for body text
Black text on #40142F 1.35:1 Fails Lc 0.0 Not readable
#40142F text on white 15.45:1 AAA Lc 102.0 Preferred for body text
#40142F 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

    #F8E3EE

    oklch(93.6% 0.027 344.6)

  3. Step 200

    200

    #F3CCE0

    oklch(88.4% 0.051 345.9)

  4. Step 300

    300

    #ECA9CD

    oklch(80.9% 0.091 345.9)

  5. Step 400

    400

    #E078B4

    oklch(70.7% 0.146 345.8)

  6. Step 500

    500

    #D450A2

    oklch(63.1% 0.187 345.5)

  7. Step 600

    600

    #BF2C8D

    oklch(55.6% 0.204 345.4)

  8. Step 700

    700

    #A41C77

    oklch(49% 0.189 345.7)

  9. Step 800

    800

    #861B61

    oklch(42.7% 0.157 345.9)

  10. Step 900

    900

    #6C1F4F

    oklch(37.8% 0.122 346.1)

  11. Step 950

    950 (this color)

    #40142F

    oklch(27.2% 0.077 345.6)

Export this scale for Tailwind in the Tailwind colors tool

#40142F 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)#1820300.085
Deuteranopia (no green cones)#25272E0.075
Tritanopia (no blue cones)#45131F0.032
Achromatopsia (no color)#2424240.078

Harmonies

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

Complementary

The opposite hue (180°).

  • #40142F

    #40142F

    oklch(27.2% 0.077 345.6)

  • #002F20

    #002F20

    oklch(27.1% 0.056 165.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40142F

    #40142F

    oklch(27.2% 0.077 345.6)

  • #351940

    #351940

    oklch(27.2% 0.077 315.6)

  • #45131A

    #45131A

    oklch(27.2% 0.077 15.6)

Open the analogous palette in the generator

Split complementary

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

  • #40142F

    #40142F

    oklch(27.2% 0.077 345.6)

  • #142F02

    #142F02

    oklch(27.3% 0.077 135.6)

  • #002E2E

    #002E2E

    oklch(27.3% 0.047 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40142F

    #40142F

    oklch(27.2% 0.077 345.6)

  • #2B2800

    #2B2800

    oklch(27.1% 0.058 105.3)

  • #002C3A

    #002C3A

    oklch(27.3% 0.052 225)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40142F

    #40142F

    oklch(27.2% 0.077 345.6)

  • #372200

    #372200

    oklch(27.2% 0.057 74.9)

  • #002F20

    #002F20

    oklch(27.1% 0.056 165.8)

  • #08264C

    #08264C

    oklch(27.1% 0.079 256.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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