#311D41

Closest named color: Oxford Blue (#1B263B). oklch(27.5% 0.068 308.2), rgb(49, 29, 65).

Aa

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

About this color

#311D41 is a dark, muted purple. In OKLCH its lightness is 27%, its chroma 0.068 and its hue 308°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.049 away. White text reads best on it, at 15.18:1.

Hue familyPurples
Lightnessdark (27%)
Chromamuted (0.068)
Temperaturein between
Nearest nameOxford Blue (#1B263B)
Black text1.38:1
White text15.18:1

Values

HEX#311D41
RGBrgb(49, 29, 65)
HSLhsl(273, 38%, 18%)
OKLCHoklch(27.5% 0.068 308.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 #311D41 15.18:1 AAA Lc -104.7 Preferred for body text
Black text on #311D41 1.38:1 Fails Lc 0.0 Not readable
#311D41 text on white 15.18:1 AAA Lc 102.0 Preferred for body text
#311D41 text on black 1.38: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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #EEE6F6

    oklch(93.6% 0.023 308.2)

  3. Step 200

    200

    #E1D2F1

    oklch(88.5% 0.045 307.2)

  4. Step 300

    300

    #CFB3E9

    oklch(80.9% 0.08 308.2)

  5. Step 400

    400

    #B789DE

    oklch(70.6% 0.13 308.3)

  6. Step 500

    500

    #A569D5

    oklch(63% 0.166 308)

  7. Step 600

    600

    #914EC2

    oklch(55.6% 0.179 308.3)

  8. Step 700

    700

    #7B3EA8

    oklch(49.1% 0.167 307.9)

  9. Step 800

    800

    #643488

    oklch(42.7% 0.138 307.9)

  10. Step 900

    900

    #522E6D

    oklch(37.7% 0.109 308.4)

  11. Step 950

    950 (this color)

    #311D41

    oklch(27.5% 0.068 308.2)

Export this scale for Tailwind in the Tailwind colors tool

#311D41 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)#1425420.053
Deuteranopia (no green cones)#1926400.049
Tritanopia (no blue cones)#2F232C0.048
Achromatopsia (no color)#2626260.069

Harmonies

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

Complementary

The opposite hue (180°).

  • #311D41

    #311D41

    oklch(27.5% 0.068 308.2)

  • #1E2E03

    #1E2E03

    oklch(27.7% 0.068 128.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #311D41

    #311D41

    oklch(27.5% 0.068 308.2)

  • #212348

    #212348

    oklch(27.5% 0.067 278.7)

  • #3C1933

    #3C1933

    oklch(27.5% 0.067 338)

Open the analogous palette in the generator

Split complementary

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

  • #311D41

    #311D41

    oklch(27.5% 0.068 308.2)

  • #2F2800

    #2F2800

    oklch(27.6% 0.057 99.1)

  • #00311B

    #00311B

    oklch(27.6% 0.065 157.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #311D41

    #311D41

    oklch(27.5% 0.068 308.2)

  • #3B2100

    #3B2100

    oklch(27.6% 0.061 67.7)

  • #002F2C

    #002F2C

    oklch(27.5% 0.048 188.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #311D41

    #311D41

    oklch(27.5% 0.068 308.2)

  • #43190C

    #43190C

    oklch(27.5% 0.069 37.7)

  • #1E2E03

    #1E2E03

    oklch(27.7% 0.068 128.1)

  • #002D38

    #002D38

    oklch(27.5% 0.05 219.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #311D41 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.