#271242

Closest named color: Dark Purple (#35063E). oklch(24.2% 0.087 300.1), rgb(39, 18, 66).

Aa

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

About this color

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

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

Values

HEX#271242
RGBrgb(39, 18, 66)
HSLhsl(266, 57%, 16%)
OKLCHoklch(24.2% 0.087 300.1)

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 #271242 16.78:1 AAA Lc -105.9 Preferred for body text
Black text on #271242 1.25:1 Fails Lc 0.0 Not readable
#271242 text on white 16.78:1 AAA Lc 103.4 Preferred for body text
#271242 text on black 1.25: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

    #F7F4FE

    oklch(97.2% 0.014 299.8)

  2. Step 100

    100

    #EDE6FB

    oklch(93.7% 0.029 301)

  3. Step 200

    200

    #DED1FA

    oklch(88.4% 0.057 299.7)

  4. Step 300

    300

    #CBB2FA

    oklch(81% 0.103 300)

  5. Step 400

    400

    #B185F7

    oklch(70.6% 0.166 300)

  6. Step 500

    500

    #9F61F3

    oklch(63% 0.211 299.9)

  7. Step 600

    600

    #8B41E2

    oklch(55.6% 0.229 299.8)

  8. Step 700

    700

    #7731C4

    oklch(49.2% 0.213 300.2)

  9. Step 800

    800

    #602B9E

    oklch(42.7% 0.175 300)

  10. Step 900

    900

    #4E297E

    oklch(37.7% 0.137 299.8)

  11. Step 950

    950 (this color)

    #271242

    oklch(24.2% 0.087 300.1)

Export this scale for Tailwind in the Tailwind colors tool

#271242 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)#001D430.063
Deuteranopia (no green cones)#011D410.063
Tritanopia (no blue cones)#211D280.066
Achromatopsia (no color)#1D1D1D0.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #271242

    #271242

    oklch(24.2% 0.087 300.1)

  • #1C2300

    #1C2300

    oklch(24.1% 0.057 120.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #271242

    #271242

    oklch(24.2% 0.087 300.1)

  • #111A48

    #111A48

    oklch(24.2% 0.086 270.3)

  • #350B33

    #350B33

    oklch(24.3% 0.087 329.9)

Open the analogous palette in the generator

Split complementary

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

  • #271242

    #271242

    oklch(24.2% 0.087 300.1)

  • #291E00

    #291E00

    oklch(24.2% 0.049 89.1)

  • #00280D

    #00280D

    oklch(24.2% 0.067 150)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #271242

    #271242

    oklch(24.2% 0.087 300.1)

  • #331800

    #331800

    oklch(24.3% 0.057 59.8)

  • #002621

    #002621

    oklch(24.1% 0.043 182)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #271242

    #271242

    oklch(24.2% 0.087 300.1)

  • #400703

    #400703

    oklch(24.2% 0.087 30.4)

  • #1C2300

    #1C2300

    oklch(24.1% 0.057 120.1)

  • #00252B

    #00252B

    oklch(24.2% 0.042 210.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #271242 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.