#271F33

Closest named color: Dark (#1B2431). oklch(25.8% 0.038 302.2), rgb(39, 31, 51).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (26%)
Chromamuted (0.038)
Temperaturein between
Nearest nameDark (#1B2431)
Black text1.33:1
White text15.78:1

Values

HEX#271F33
RGBrgb(39, 31, 51)
HSLhsl(264, 24%, 16%)
OKLCHoklch(25.8% 0.038 302.2)

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 #271F33 15.78:1 AAA Lc -105.3 Preferred for body text
Black text on #271F33 1.33:1 Fails Lc 0.0 Not readable
#271F33 text on white 15.78:1 AAA Lc 102.7 Preferred for body text
#271F33 text on black 1.33: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

    #F6F4F9

    oklch(97% 0.007 304.2)

  2. Step 100

    100

    #EBE8F1

    oklch(93.6% 0.012 301.3)

  3. Step 200

    200

    #DCD6E7

    oklch(88.6% 0.024 301.9)

  4. Step 300

    300

    #C6BADA

    oklch(80.9% 0.046 302.4)

  5. Step 400

    400

    #A996C7

    oklch(70.7% 0.073 302.3)

  6. Step 500

    500

    #947CB8

    oklch(63.1% 0.092 302.2)

  7. Step 600

    600

    #7F64A4

    oklch(55.6% 0.101 302.7)

  8. Step 700

    700

    #6B538D

    oklch(49.2% 0.094 302.1)

  9. Step 800

    800

    #574472

    oklch(42.7% 0.077 302.3)

  10. Step 900

    900

    #483A5C

    oklch(37.8% 0.059 302.6)

  11. Step 950

    950 (this color)

    #271F33

    oklch(25.8% 0.038 302.2)

Export this scale for Tailwind in the Tailwind colors tool

#271F33 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)#1B22340.023
Deuteranopia (no green cones)#1C23320.023
Tritanopia (no blue cones)#2522260.030
Achromatopsia (no color)#2323230.038

Harmonies

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

Complementary

The opposite hue (180°).

  • #271F33

    #271F33

    oklch(25.8% 0.038 302.2)

  • #202711

    #202711

    oklch(25.9% 0.039 123.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #271F33

    #271F33

    oklch(25.8% 0.038 302.2)

  • #1D2236

    #1D2236

    oklch(25.7% 0.038 272.7)

  • #2F1D2C

    #2F1D2C

    oklch(26% 0.038 332.7)

Open the analogous palette in the generator

Split complementary

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

  • #271F33

    #271F33

    oklch(25.8% 0.038 302.2)

  • #2A230C

    #2A230C

    oklch(25.8% 0.038 92.6)

  • #14291A

    #14291A

    oklch(25.8% 0.039 152)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #271F33

    #271F33

    oklch(25.8% 0.038 302.2)

  • #311F0F

    #311F0F

    oklch(25.8% 0.039 61.4)

  • #092A25

    #092A25

    oklch(25.9% 0.039 181.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #271F33

    #271F33

    oklch(25.8% 0.038 302.2)

  • #341C18

    #341C18

    oklch(25.8% 0.039 30.2)

  • #202711

    #202711

    oklch(25.9% 0.039 123.6)

  • #08282E

    #08282E

    oklch(25.7% 0.038 212.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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