#2A173A

Closest named color: Dark Purple (#35063E). oklch(24.9% 0.067 307.3), rgb(42, 23, 58).

Aa

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

About this color

#2A173A is a very dark, muted purple. In OKLCH its lightness is 25%, its chroma 0.067 and its hue 307°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.042 away. White text reads best on it, at 16.37:1.

Hue familyPurples
Lightnessvery dark (25%)
Chromamuted (0.067)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.28:1
White text16.37:1

Values

HEX#2A173A
RGBrgb(42, 23, 58)
HSLhsl(273, 43%, 16%)
OKLCHoklch(24.9% 0.067 307.3)

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 #2A173A 16.37:1 AAA Lc -105.7 Preferred for body text
Black text on #2A173A 1.28:1 Fails Lc 0.0 Not readable
#2A173A text on white 16.37:1 AAA Lc 103.2 Preferred for body text
#2A173A text on black 1.28: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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #EEE6F6

    oklch(93.6% 0.023 308.2)

  3. Step 200

    200

    #E1D2F0

    oklch(88.5% 0.044 307.9)

  4. Step 300

    300

    #CEB3E9

    oklch(80.8% 0.08 307.4)

  5. Step 400

    400

    #B68ADE

    oklch(70.7% 0.128 307.5)

  6. Step 500

    500

    #A46AD5

    oklch(63.1% 0.164 307.4)

  7. Step 600

    600

    #8F4FC2

    oklch(55.6% 0.177 307.2)

  8. Step 700

    700

    #7A3FA7

    oklch(49.1% 0.164 307.6)

  9. Step 800

    800

    #633588

    oklch(42.7% 0.136 307.1)

  10. Step 900

    900

    #512F6D

    oklch(37.8% 0.107 307.4)

  11. Step 950

    950 (this color)

    #2A173A

    oklch(24.9% 0.067 307.3)

Export this scale for Tailwind in the Tailwind colors tool

#2A173A 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)#0D1F3B0.053
Deuteranopia (no green cones)#1220390.049
Tritanopia (no blue cones)#281D250.049
Achromatopsia (no color)#2020200.067

Harmonies

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

Complementary

The opposite hue (180°).

  • #2A173A

    #2A173A

    oklch(24.9% 0.067 307.3)

  • #192700

    #192700

    oklch(25% 0.065 127.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2A173A

    #2A173A

    oklch(24.9% 0.067 307.3)

  • #1A1D41

    #1A1D41

    oklch(25% 0.067 276.8)

  • #35132D

    #35132D

    oklch(25% 0.067 337.3)

Open the analogous palette in the generator

Split complementary

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

  • #2A173A

    #2A173A

    oklch(24.9% 0.067 307.3)

  • #282100

    #282100

    oklch(24.8% 0.051 97.5)

  • #002916

    #002916

    oklch(24.7% 0.058 158.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2A173A

    #2A173A

    oklch(24.9% 0.067 307.3)

  • #321B00

    #321B00

    oklch(24.8% 0.055 67.3)

  • #002825

    #002825

    oklch(24.9% 0.043 187.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2A173A

    #2A173A

    oklch(24.9% 0.067 307.3)

  • #3B1307

    #3B1307

    oklch(24.9% 0.067 37.4)

  • #192700

    #192700

    oklch(25% 0.065 127.3)

  • #00262F

    #00262F

    oklch(24.8% 0.044 217.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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