#40183A

Closest named color: Aubergine (#3D0734). oklch(28.4% 0.079 333.6), rgb(64, 24, 58).

Aa

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

About this color

#40183A is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.079 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.036 away. White text reads best on it, at 14.89:1.

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.079)
Temperaturein between
Nearest nameAubergine (#3D0734)
Black text1.40:1
White text14.89:1

Values

HEX#40183A
RGBrgb(64, 24, 58)
HSLhsl(309, 45%, 17%)
OKLCHoklch(28.4% 0.079 333.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 #40183A 14.89:1 AAA Lc -104.3 Preferred for body text
Black text on #40183A 1.40:1 Fails Lc 0.0 Not readable
#40183A text on white 14.89:1 AAA Lc 101.4 Preferred for body text
#40183A text on black 1.40: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

    #FBF2F9

    oklch(97% 0.013 333)

  2. Step 100

    100

    #F6E3F2

    oklch(93.5% 0.029 332.8)

  3. Step 200

    200

    #EFCDE8

    oklch(88.5% 0.052 333.1)

  4. Step 300

    300

    #E6AADA

    oklch(80.9% 0.094 333.6)

  5. Step 400

    400

    #D77AC8

    oklch(70.7% 0.151 333.2)

  6. Step 500

    500

    #CA53B9

    oklch(63.1% 0.192 333.5)

  7. Step 600

    600

    #B530A5

    oklch(55.5% 0.209 333.4)

  8. Step 700

    700

    #9C218D

    oklch(49.1% 0.194 333.8)

  9. Step 800

    800

    #7F1F73

    oklch(42.8% 0.161 333.6)

  10. Step 900

    900

    #66215D

    oklch(37.7% 0.125 333.3)

  11. Step 950

    950 (this color)

    #40183A

    oklch(28.4% 0.079 333.6)

Export this scale for Tailwind in the Tailwind colors tool

#40183A 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)#17243B0.082
Deuteranopia (no green cones)#2329390.072
Tritanopia (no blue cones)#431B260.041
Achromatopsia (no color)#2727270.080

Harmonies

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

Complementary

The opposite hue (180°).

  • #40183A

    #40183A

    oklch(28.4% 0.079 333.6)

  • #003418

    #003418

    oklch(28.5% 0.073 153.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40183A

    #40183A

    oklch(28.4% 0.079 333.6)

  • #321E49

    #321E49

    oklch(28.4% 0.078 303.2)

  • #481526

    #481526

    oklch(28.4% 0.08 3)

Open the analogous palette in the generator

Split complementary

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

  • #40183A

    #40183A

    oklch(28.4% 0.079 333.6)

  • #232F00

    #232F00

    oklch(28.4% 0.07 123.5)

  • #00322C

    #00322C

    oklch(28.5% 0.051 182.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40183A

    #40183A

    oklch(28.4% 0.079 333.6)

  • #332900

    #332900

    oklch(28.4% 0.058 94.7)

  • #003039

    #003039

    oklch(28.4% 0.05 214.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40183A

    #40183A

    oklch(28.4% 0.079 333.6)

  • #3F2100

    #3F2100

    oklch(28.2% 0.064 63.2)

  • #003418

    #003418

    oklch(28.5% 0.073 153.5)

  • #002C49

    #002C49

    oklch(28.2% 0.07 244)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40183A 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.