#271E47

Closest named color: Oxford Blue (#1B263B). oklch(26.9% 0.074 290.7), rgb(39, 30, 71).

Aa

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

About this color

#271E47 is a dark, moderately saturated purple. In OKLCH its lightness is 27%, its chroma 0.074 and its hue 291°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.041 away. White text reads best on it, at 15.40:1.

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.074)
Temperaturein between
Nearest nameOxford Blue (#1B263B)
Black text1.36:1
White text15.40:1

Values

HEX#271E47
RGBrgb(39, 30, 71)
HSLhsl(253, 41%, 20%)
OKLCHoklch(26.9% 0.074 290.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 #271E47 15.40:1 AAA Lc -104.9 Preferred for body text
Black text on #271E47 1.36:1 Fails Lc 0.0 Not readable
#271E47 text on white 15.40:1 AAA Lc 102.2 Preferred for body text
#271E47 text on black 1.36: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

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #E9E7FA

    oklch(93.5% 0.026 290.7)

  3. Step 200

    200

    #D8D4F8

    oklch(88.4% 0.049 290.4)

  4. Step 300

    300

    #C0B7F5

    oklch(80.8% 0.087 291)

  5. Step 400

    400

    #A18FF1

    oklch(70.6% 0.141 290.8)

  6. Step 500

    500

    #8C70EB

    oklch(63% 0.178 290.9)

  7. Step 600

    600

    #7755DA

    oklch(55.6% 0.194 290.4)

  8. Step 700

    700

    #6544BD

    oklch(49.1% 0.181 290.8)

  9. Step 800

    800

    #523999

    oklch(42.7% 0.15 290.7)

  10. Step 900

    900

    #43327A

    oklch(37.6% 0.118 290.5)

  11. Step 950

    950 (this color)

    #271E47

    oklch(26.9% 0.074 290.7)

Export this scale for Tailwind in the Tailwind colors tool

#271E47 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)#0C25480.042
Deuteranopia (no green cones)#0E24460.040
Tritanopia (no blue cones)#1E262F0.059
Achromatopsia (no color)#2525250.074

Harmonies

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

Complementary

The opposite hue (180°).

  • #271E47

    #271E47

    oklch(26.9% 0.074 290.7)

  • #282900

    #282900

    oklch(27.1% 0.06 111.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #271E47

    #271E47

    oklch(26.9% 0.074 290.7)

  • #10254A

    #10254A

    oklch(27% 0.074 260.8)

  • #36183C

    #36183C

    oklch(26.9% 0.074 320.7)

Open the analogous palette in the generator

Split complementary

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

  • #271E47

    #271E47

    oklch(26.9% 0.074 290.7)

  • #342300

    #342300

    oklch(27% 0.056 81.4)

  • #0E2F08

    #0E2F08

    oklch(27.1% 0.075 140.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #271E47

    #271E47

    oklch(26.9% 0.074 290.7)

  • #401A00

    #401A00

    oklch(27% 0.07 51.3)

  • #002E23

    #002E23

    oklch(26.8% 0.052 171.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #271E47

    #271E47

    oklch(26.9% 0.074 290.7)

  • #441416

    #441416

    oklch(27% 0.074 21.1)

  • #282900

    #282900

    oklch(27.1% 0.06 111.2)

  • #002D2F

    #002D2F

    oklch(27% 0.046 199.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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