#311A42

Closest named color: Dark Purple (#35063E). oklch(27% 0.076 308.7), rgb(49, 26, 66).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.076)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.35:1
White text15.47:1

Values

HEX#311A42
RGBrgb(49, 26, 66)
HSLhsl(275, 43%, 18%)
OKLCHoklch(27% 0.076 308.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 #311A42 15.47:1 AAA Lc -104.9 Preferred for body text
Black text on #311A42 1.35:1 Fails Lc 0.0 Not readable
#311A42 text on white 15.47:1 AAA Lc 102.2 Preferred for body text
#311A42 text on black 1.35: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

    #EFE6F7

    oklch(93.7% 0.025 309.4)

  3. Step 200

    200

    #E3D1F3

    oklch(88.6% 0.05 309.1)

  4. Step 300

    300

    #D1B1ED

    oklch(80.8% 0.09 308.7)

  5. Step 400

    400

    #BA86E4

    oklch(70.7% 0.143 308.6)

  6. Step 500

    500

    #A964DC

    oklch(63.1% 0.183 308.6)

  7. Step 600

    600

    #9547CA

    oklch(55.7% 0.199 308.7)

  8. Step 700

    700

    #7F37AE

    oklch(49.1% 0.185 308.9)

  9. Step 800

    800

    #672F8D

    oklch(42.7% 0.153 308.7)

  10. Step 900

    900

    #542B71

    oklch(37.8% 0.12 308.8)

  11. Step 950

    950 (this color)

    #311A42

    oklch(27% 0.076 308.7)

Export this scale for Tailwind in the Tailwind colors tool

#311A42 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)#0E23430.062
Deuteranopia (no green cones)#1525410.057
Tritanopia (no blue cones)#2F212B0.053
Achromatopsia (no color)#2424240.076

Harmonies

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

Complementary

The opposite hue (180°).

  • #311A42

    #311A42

    oklch(27% 0.076 308.7)

  • #1B2D00

    #1B2D00

    oklch(27.1% 0.072 129.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #311A42

    #311A42

    oklch(27% 0.076 308.7)

  • #1F214A

    #1F214A

    oklch(27.1% 0.075 278.1)

  • #3D1533

    #3D1533

    oklch(27% 0.076 338.3)

Open the analogous palette in the generator

Split complementary

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

  • #311A42

    #311A42

    oklch(27% 0.076 308.7)

  • #2D2600

    #2D2600

    oklch(26.8% 0.056 98.7)

  • #002F1B

    #002F1B

    oklch(26.9% 0.062 159.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #311A42

    #311A42

    oklch(27% 0.076 308.7)

  • #392000

    #392000

    oklch(27% 0.059 68.3)

  • #002E2B

    #002E2B

    oklch(27.1% 0.047 188)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #311A42

    #311A42

    oklch(27% 0.076 308.7)

  • #441606

    #441606

    oklch(27.1% 0.076 38.9)

  • #1B2D00

    #1B2D00

    oklch(27.1% 0.072 129.3)

  • #002C36

    #002C36

    oklch(27% 0.048 217.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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