#2A1138

Closest named color: Dark Purple (#35063E). oklch(23.7% 0.076 311.5), rgb(42, 17, 56).

Aa

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

About this color

#2A1138 is a very dark, moderately saturated purple. In OKLCH its lightness is 24%, its chroma 0.076 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.033 away. White text reads best on it, at 16.99:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamoderately saturated (0.076)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.23:1
White text16.99:1

Values

HEX#2A1138
RGBrgb(42, 17, 56)
HSLhsl(278, 53%, 14%)
OKLCHoklch(23.7% 0.076 311.5)

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 #2A1138 16.99:1 AAA Lc -106.1 Preferred for body text
Black text on #2A1138 1.23:1 Fails Lc 0.0 Not readable
#2A1138 text on white 16.99:1 AAA Lc 103.7 Preferred for body text
#2A1138 text on black 1.23: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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #F0E5F7

    oklch(93.6% 0.027 312.6)

  3. Step 200

    200

    #E4D0F2

    oklch(88.4% 0.051 311.5)

  4. Step 300

    300

    #D4B0EB

    oklch(80.8% 0.09 312)

  5. Step 400

    400

    #BE85E2

    oklch(70.8% 0.144 311.4)

  6. Step 500

    500

    #AD62D9

    oklch(63.1% 0.184 311.3)

  7. Step 600

    600

    #9944C6

    oklch(55.6% 0.2 311.7)

  8. Step 700

    700

    #8235AB

    oklch(49.1% 0.185 311.4)

  9. Step 800

    800

    #6A2D8B

    oklch(42.7% 0.154 311.4)

  10. Step 900

    900

    #562A6F

    oklch(37.7% 0.12 311.4)

  11. Step 950

    950 (this color)

    #2A1138

    oklch(23.7% 0.076 311.5)

Export this scale for Tailwind in the Tailwind colors tool

#2A1138 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)#041B390.068
Deuteranopia (no green cones)#0E1D370.059
Tritanopia (no blue cones)#2818220.052
Achromatopsia (no color)#1C1C1C0.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A1138

    #2A1138

    oklch(23.7% 0.076 311.5)

  • #122400

    #122400

    oklch(23.5% 0.065 131.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A1138

    #2A1138

    oklch(23.7% 0.076 311.5)

  • #1A1741

    #1A1741

    oklch(23.6% 0.077 282)

  • #350C29

    #350C29

    oklch(23.8% 0.076 341.3)

Open the analogous palette in the generator

Split complementary

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

  • #2A1138

    #2A1138

    oklch(23.7% 0.076 311.5)

  • #231F00

    #231F00

    oklch(23.6% 0.05 102.5)

  • #002616

    #002616

    oklch(23.7% 0.053 160.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A1138

    #2A1138

    oklch(23.7% 0.076 311.5)

  • #2D1A00

    #2D1A00

    oklch(23.7% 0.051 72.4)

  • #002423

    #002423

    oklch(23.5% 0.04 192)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A1138

    #2A1138

    oklch(23.7% 0.076 311.5)

  • #390F00

    #390F00

    oklch(23.7% 0.072 41.7)

  • #122400

    #122400

    oklch(23.5% 0.065 131.8)

  • #00232D

    #00232D

    oklch(23.7% 0.044 221.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2A1138 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.