#271B38

Closest named color: Oxford Blue (#1B263B). oklch(25.2% 0.055 301.7), rgb(39, 27, 56).

Aa

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

About this color

#271B38 is a dark, muted purple. In OKLCH its lightness is 25%, its chroma 0.055 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.039 away. White text reads best on it, at 16.15:1.

Hue familyPurples
Lightnessdark (25%)
Chromamuted (0.055)
Temperaturein between
Nearest nameOxford Blue (#1B263B)
Black text1.30:1
White text16.15:1

Values

HEX#271B38
RGBrgb(39, 27, 56)
HSLhsl(265, 35%, 16%)
OKLCHoklch(25.2% 0.055 301.7)

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 #271B38 16.15:1 AAA Lc -105.6 Preferred for body text
Black text on #271B38 1.30:1 Fails Lc 0.0 Not readable
#271B38 text on white 16.15:1 AAA Lc 103.0 Preferred for body text
#271B38 text on black 1.30: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

    #F6F4FA

    oklch(97% 0.008 301.4)

  2. Step 100

    100

    #ECE7F5

    oklch(93.6% 0.019 302.2)

  3. Step 200

    200

    #DDD4EE

    oklch(88.5% 0.037 301.4)

  4. Step 300

    300

    #C8B7E4

    oklch(80.8% 0.065 302.2)

  5. Step 400

    400

    #AC91D7

    oklch(70.7% 0.104 301.5)

  6. Step 500

    500

    #9874CC

    oklch(63% 0.133 301.6)

  7. Step 600

    600

    #835BB9

    oklch(55.6% 0.145 301.5)

  8. Step 700

    700

    #6F4A9F

    oklch(49% 0.135 301.7)

  9. Step 800

    800

    #5B3D81

    oklch(42.7% 0.112 302.3)

  10. Step 900

    900

    #4A3568

    oklch(37.7% 0.087 301.3)

  11. Step 950

    950 (this color)

    #271B38

    oklch(25.2% 0.055 301.7)

Export this scale for Tailwind in the Tailwind colors tool

#271B38 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)#1321390.037
Deuteranopia (no green cones)#1621370.034
Tritanopia (no blue cones)#2420260.043
Achromatopsia (no color)#2121210.055

Harmonies

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

Complementary

The opposite hue (180°).

  • #271B38

    #271B38

    oklch(25.2% 0.055 301.7)

  • #1E2604

    #1E2604

    oklch(25.2% 0.055 121.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #271B38

    #271B38

    oklch(25.2% 0.055 301.7)

  • #19203C

    #19203C

    oklch(25.3% 0.054 271.5)

  • #31172E

    #31172E

    oklch(25.2% 0.056 331.4)

Open the analogous palette in the generator

Split complementary

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

  • #271B38

    #271B38

    oklch(25.2% 0.055 301.7)

  • #2B2100

    #2B2100

    oklch(25.2% 0.052 92.1)

  • #092914

    #092914

    oklch(25.1% 0.054 151.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #271B38

    #271B38

    oklch(25.2% 0.055 301.7)

  • #351B02

    #351B02

    oklch(25.3% 0.056 61.1)

  • #002924

    #002924

    oklch(25.2% 0.045 182.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #271B38

    #271B38

    oklch(25.2% 0.055 301.7)

  • #381711

    #381711

    oklch(25.2% 0.054 31.8)

  • #1E2604

    #1E2604

    oklch(25.2% 0.055 121.7)

  • #00272E

    #00272E

    oklch(25% 0.044 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 #271B38, closest first.

Similar named colors

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

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