#271B29

Closest named color: Dark (#1B2431). oklch(24.3% 0.031 321.6), rgb(39, 27, 41).

Aa

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

About this color

#271B29 is a very dark, muted purple. In OKLCH its lightness is 24%, its chroma 0.031 and its hue 322°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark (#1B2431), ΔE 0.035 away. White text reads best on it, at 16.46:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamuted (0.031)
Temperaturein between
Nearest nameDark (#1B2431)
Black text1.27:1
White text16.46:1

Values

HEX#271B29
RGBrgb(39, 27, 41)
HSLhsl(291, 21%, 13%)
OKLCHoklch(24.3% 0.031 321.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 #271B29 16.46:1 AAA Lc -105.9 Preferred for body text
Black text on #271B29 1.27:1 Fails Lc 0.0 Not readable
#271B29 text on white 16.46:1 AAA Lc 103.4 Preferred for body text
#271B29 text on black 1.27: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

    #F7F4F7

    oklch(97% 0.005 325.6)

  2. Step 100

    100

    #EDE8EE

    oklch(93.7% 0.01 320.5)

  3. Step 200

    200

    #E0D5E1

    oklch(88.5% 0.02 323.2)

  4. Step 300

    300

    #CCB9CF

    oklch(80.8% 0.037 321.6)

  5. Step 400

    400

    #B295B7

    oklch(70.7% 0.059 321.3)

  6. Step 500

    500

    #9F7AA5

    oklch(63% 0.076 321.7)

  7. Step 600

    600

    #8A6390

    oklch(55.6% 0.082 322)

  8. Step 700

    700

    #75527B

    oklch(49.2% 0.076 321.5)

  9. Step 800

    800

    #5F4364

    oklch(42.7% 0.064 321.3)

  10. Step 900

    900

    #4E3951

    oklch(37.7% 0.048 322.2)

  11. Step 950

    950 (this color)

    #271B29

    oklch(24.3% 0.031 321.6)

Export this scale for Tailwind in the Tailwind colors tool

#271B29 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)#1A1E2A0.026
Deuteranopia (no green cones)#1C20290.026
Tritanopia (no blue cones)#271C200.019
Achromatopsia (no color)#1F1F1F0.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #271B29

    #271B29

    oklch(24.3% 0.031 321.6)

  • #172416

    #172416

    oklch(24.3% 0.032 142.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #271B29

    #271B29

    oklch(24.3% 0.031 321.6)

  • #201D2E

    #201D2E

    oklch(24.2% 0.032 291.9)

  • #2C1A22

    #2C1A22

    oklch(24.5% 0.032 351.4)

Open the analogous palette in the generator

Split complementary

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

  • #271B29

    #271B29

    oklch(24.3% 0.031 321.6)

  • #20210F

    #20210F

    oklch(24.1% 0.031 111.3)

  • #0F251E

    #0F251E

    oklch(24.4% 0.031 170.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #271B29

    #271B29

    oklch(24.3% 0.031 321.6)

  • #281E0E

    #281E0E

    oklch(24.3% 0.031 78.2)

  • #0B2426

    #0B2426

    oklch(24.2% 0.031 202.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #271B29

    #271B29

    oklch(24.3% 0.031 321.6)

  • #2C1C12

    #2C1C12

    oklch(24.4% 0.031 52.8)

  • #172416

    #172416

    oklch(24.3% 0.032 142.8)

  • #0F232C

    #0F232C

    oklch(24.4% 0.031 229.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #271B29 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.