#311741

Closest named color: Dark Purple (#35063E). oklch(26.4% 0.08 310.6), rgb(49, 23, 65).

Aa

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

About this color

#311741 is a dark, moderately saturated purple. In OKLCH its lightness is 26%, its chroma 0.080 and its hue 311°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.035 away. White text reads best on it, at 15.79:1.

Hue familyPurples
Lightnessdark (26%)
Chromamoderately saturated (0.080)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.32:1
White text15.79:1

Values

HEX#311741
RGBrgb(49, 23, 65)
HSLhsl(277, 48%, 17%)
OKLCHoklch(26.4% 0.08 310.6)

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 #311741 15.79:1 AAA Lc -105.2 Preferred for body text
Black text on #311741 1.32:1 Fails Lc 0.0 Not readable
#311741 text on white 15.79:1 AAA Lc 102.5 Preferred for body text
#311741 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

    #F8F3FC

    oklch(97.1% 0.013 310.5)

  2. Step 100

    100

    #F0E5F8

    oklch(93.6% 0.028 311.3)

  3. Step 200

    200

    #E4D0F3

    oklch(88.5% 0.052 310.8)

  4. Step 300

    300

    #D4B0EE

    oklch(81% 0.094 310.7)

  5. Step 400

    400

    #BE83E6

    oklch(70.7% 0.152 310.5)

  6. Step 500

    500

    #AE5FDE

    oklch(63.1% 0.194 310.7)

  7. Step 600

    600

    #9941CC

    oklch(55.6% 0.21 310.3)

  8. Step 700

    700

    #8331B0

    oklch(49.1% 0.195 310.7)

  9. Step 800

    800

    #6A2A8F

    oklch(42.6% 0.163 310.3)

  10. Step 900

    900

    #562872

    oklch(37.6% 0.127 310.4)

  11. Step 950

    950 (this color)

    #311741

    oklch(26.4% 0.08 310.6)

Export this scale for Tailwind in the Tailwind colors tool

#311741 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)#0921420.069
Deuteranopia (no green cones)#1323400.061
Tritanopia (no blue cones)#2F1F290.056
Achromatopsia (no color)#2323230.080

Harmonies

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

Complementary

The opposite hue (180°).

  • #311741

    #311741

    oklch(26.4% 0.08 310.6)

  • #182B00

    #182B00

    oklch(26.2% 0.071 130.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #311741

    #311741

    oklch(26.4% 0.08 310.6)

  • #1F1E4A

    #1F1E4A

    oklch(26.4% 0.079 280.5)

  • #3D1230

    #3D1230

    oklch(26.4% 0.079 341.3)

Open the analogous palette in the generator

Split complementary

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

  • #311741

    #311741

    oklch(26.4% 0.08 310.6)

  • #2B2500

    #2B2500

    oklch(26.3% 0.055 100.1)

  • #002D1B

    #002D1B

    oklch(26.2% 0.058 161)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #311741

    #311741

    oklch(26.4% 0.08 310.6)

  • #361F00

    #361F00

    oklch(26.3% 0.057 70.2)

  • #002C2A

    #002C2A

    oklch(26.5% 0.046 190.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #311741

    #311741

    oklch(26.4% 0.08 310.6)

  • #431301

    #431301

    oklch(26.4% 0.08 40.7)

  • #182B00

    #182B00

    oklch(26.2% 0.071 130.6)

  • #002A35

    #002A35

    oklch(26.4% 0.048 220.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #311741 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.