#40172F

Closest named color: Aubergine (#3D0734). oklch(27.7% 0.072 346.6), rgb(64, 23, 47).

Aa

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

About this color

#40172F is a dark, moderately saturated red. In OKLCH its lightness is 28%, its chroma 0.072 and its hue 347°. Its hue sits on the warm side of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.039 away. White text reads best on it, at 15.19:1.

Hue familyReds
Lightnessdark (28%)
Chromamoderately saturated (0.072)
Temperaturewarm
Nearest nameAubergine (#3D0734)
Black text1.38:1
White text15.19:1

Values

HEX#40172F
RGBrgb(64, 23, 47)
HSLhsl(325, 47%, 17%)
OKLCHoklch(27.7% 0.072 346.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 #40172F 15.19:1 AAA Lc -104.6 Preferred for body text
Black text on #40172F 1.38:1 Fails Lc 0.0 Not readable
#40172F text on white 15.19:1 AAA Lc 101.8 Preferred for body text
#40172F text on black 1.38: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

    #FCF3F7

    oklch(97.2% 0.011 348.4)

  2. Step 100

    100

    #F7E4ED

    oklch(93.7% 0.024 347.2)

  3. Step 200

    200

    #F2CDDF

    oklch(88.5% 0.048 347.2)

  4. Step 300

    300

    #EAABCC

    oklch(81% 0.085 346.4)

  5. Step 400

    400

    #DD7BB1

    oklch(70.7% 0.137 347)

  6. Step 500

    500

    #D0569E

    oklch(63.1% 0.173 346.7)

  7. Step 600

    600

    #BB3589

    oklch(55.5% 0.189 346.5)

  8. Step 700

    700

    #A12674

    oklch(49.1% 0.176 346.7)

  9. Step 800

    800

    #83225F

    oklch(42.7% 0.146 346.4)

  10. Step 900

    900

    #6A224D

    oklch(37.7% 0.114 347.1)

  11. Step 950

    950 (this color)

    #40172F

    oklch(27.7% 0.072 346.6)

Export this scale for Tailwind in the Tailwind colors tool

#40172F 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)#1B21300.077
Deuteranopia (no green cones)#26282E0.070
Tritanopia (no blue cones)#4416200.029
Achromatopsia (no color)#2626260.072

Harmonies

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

Complementary

The opposite hue (180°).

  • #40172F

    #40172F

    oklch(27.7% 0.072 346.6)

  • #003122

    #003122

    oklch(27.8% 0.057 166.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40172F

    #40172F

    oklch(27.7% 0.072 346.6)

  • #361B3F

    #361B3F

    oklch(27.7% 0.072 317.2)

  • #45161B

    #45161B

    oklch(27.7% 0.072 16.8)

Open the analogous palette in the generator

Split complementary

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

  • #40172F

    #40172F

    oklch(27.7% 0.072 346.6)

  • #163007

    #163007

    oklch(27.8% 0.072 136.3)

  • #002F30

    #002F30

    oklch(27.7% 0.047 197)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40172F

    #40172F

    oklch(27.7% 0.072 346.6)

  • #2C2A00

    #2C2A00

    oklch(27.8% 0.06 106.9)

  • #002D3C

    #002D3C

    oklch(27.7% 0.053 226.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40172F

    #40172F

    oklch(27.7% 0.072 346.6)

  • #382300

    #382300

    oklch(27.6% 0.058 75.5)

  • #003122

    #003122

    oklch(27.8% 0.057 166.5)

  • #0E284A

    #0E284A

    oklch(27.7% 0.071 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 #40172F, closest first.

Similar named colors

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

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