#271F2F

Closest named color: Dark (#1B2431). oklch(25.6% 0.032 307.1), rgb(39, 31, 47).

Aa

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

About this color

#271F2F is a dark, muted purple. In OKLCH its lightness is 26%, its chroma 0.032 and its hue 307°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark (#1B2431), ΔE 0.025 away. White text reads best on it, at 15.86:1.

Hue familyPurples
Lightnessdark (26%)
Chromamuted (0.032)
Temperaturein between
Nearest nameDark (#1B2431)
Black text1.32:1
White text15.86:1

Values

HEX#271F2F
RGBrgb(39, 31, 47)
HSLhsl(270, 21%, 15%)
OKLCHoklch(25.6% 0.032 307.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 #271F2F 15.86:1 AAA Lc -105.4 Preferred for body text
Black text on #271F2F 1.32:1 Fails Lc 0.0 Not readable
#271F2F text on white 15.86:1 AAA Lc 102.8 Preferred for body text
#271F2F text on black 1.32: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

    #F6F5F8

    oklch(97.2% 0.004 301.4)

  2. Step 100

    100

    #ECE8F0

    oklch(93.6% 0.011 308.3)

  3. Step 200

    200

    #DDD6E4

    oklch(88.6% 0.02 308.2)

  4. Step 300

    300

    #C7BBD4

    oklch(81% 0.037 307.1)

  5. Step 400

    400

    #AA97BE

    oklch(70.6% 0.06 307)

  6. Step 500

    500

    #967DAE

    oklch(63.1% 0.077 307.5)

  7. Step 600

    600

    #806699

    oklch(55.5% 0.083 307.2)

  8. Step 700

    700

    #6C5583

    oklch(49.1% 0.077 306.7)

  9. Step 800

    800

    #58456A

    oklch(42.6% 0.064 307.4)

  10. Step 900

    900

    #493B56

    oklch(37.8% 0.048 307.8)

  11. Step 950

    950 (this color)

    #271F2F

    oklch(25.6% 0.032 307.1)

Export this scale for Tailwind in the Tailwind colors tool

#271F2F 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)#1C22300.021
Deuteranopia (no green cones)#1E222F0.019
Tritanopia (no blue cones)#2621250.023
Achromatopsia (no color)#2222220.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #271F2F

    #271F2F

    oklch(25.6% 0.032 307.1)

  • #1F2615

    #1F2615

    oklch(25.6% 0.032 126.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #271F2F

    #271F2F

    oklch(25.6% 0.032 307.1)

  • #1F2232

    #1F2232

    oklch(25.7% 0.031 275.8)

  • #2D1D29

    #2D1D29

    oklch(25.6% 0.032 335.9)

Open the analogous palette in the generator

Split complementary

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

  • #271F2F

    #271F2F

    oklch(25.6% 0.032 307.1)

  • #272311

    #272311

    oklch(25.5% 0.031 97.2)

  • #16281D

    #16281D

    oklch(25.7% 0.032 156.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #271F2F

    #271F2F

    oklch(25.6% 0.032 307.1)

  • #2D2012

    #2D2012

    oklch(25.5% 0.031 67.7)

  • #0F2826

    #0F2826

    oklch(25.6% 0.031 188.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #271F2F

    #271F2F

    oklch(25.6% 0.032 307.1)

  • #301E18

    #301E18

    oklch(25.6% 0.031 39.2)

  • #1F2615

    #1F2615

    oklch(25.6% 0.032 126.7)

  • #0F272D

    #0F272D

    oklch(25.6% 0.032 216.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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