#310E42

Closest named color: Dark Purple (#35063E). oklch(25.1% 0.096 312.4), rgb(49, 14, 66).

Aa

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

About this color

#310E42 is a dark, moderately saturated purple. In OKLCH its lightness is 25%, its chroma 0.096 and its hue 312°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.018 away. White text reads best on it, at 16.50:1.

Hue familyPurples
Lightnessdark (25%)
Chromamoderately saturated (0.096)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.27:1
White text16.50:1

Values

HEX#310E42
RGBrgb(49, 14, 66)
HSLhsl(280, 65%, 16%)
OKLCHoklch(25.1% 0.096 312.4)

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 #310E42 16.50:1 AAA Lc -105.6 Preferred for body text
Black text on #310E42 1.27:1 Fails Lc 0.0 Not readable
#310E42 text on white 16.50:1 AAA Lc 103.0 Preferred for body text
#310E42 text on black 1.27: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

    #F9F3FD

    oklch(97.2% 0.015 312.2)

  2. Step 100

    100

    #F1E4FA

    oklch(93.6% 0.032 311.7)

  3. Step 200

    200

    #E8CEF8

    oklch(88.6% 0.063 312.6)

  4. Step 300

    300

    #DAABF6

    oklch(80.9% 0.114 312.4)

  5. Step 400

    400

    #C77AF1

    oklch(70.8% 0.182 312.5)

  6. Step 500

    500

    #B84FEC

    oklch(63.1% 0.233 312.3)

  7. Step 600

    600

    #A425DA

    oklch(55.6% 0.254 312.5)

  8. Step 700

    700

    #8C11BD

    oklch(49.1% 0.236 312.3)

  9. Step 800

    800

    #721699

    oklch(42.7% 0.196 312.4)

  10. Step 900

    900

    #5C1D7A

    oklch(37.7% 0.153 312.2)

  11. Step 950

    950 (this color)

    #310E42

    oklch(25.1% 0.096 312.4)

Export this scale for Tailwind in the Tailwind colors tool

#310E42 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)#001D440.086
Deuteranopia (no green cones)#0920410.080
Tritanopia (no blue cones)#2F19260.065
Achromatopsia (no color)#1F1F1F0.097

Harmonies

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

Complementary

The opposite hue (180°).

  • #310E42

    #310E42

    oklch(25.1% 0.096 312.4)

  • #142800

    #142800

    oklch(25% 0.07 132.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #310E42

    #310E42

    oklch(25.1% 0.096 312.4)

  • #1D174E

    #1D174E

    oklch(25.1% 0.097 281.8)

  • #3E062E

    #3E062E

    oklch(25.1% 0.096 342.6)

Open the analogous palette in the generator

Split complementary

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

  • #310E42

    #310E42

    oklch(25.1% 0.096 312.4)

  • #272200

    #272200

    oklch(25% 0.052 101.3)

  • #002A1A

    #002A1A

    oklch(25.2% 0.055 162.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #310E42

    #310E42

    oklch(25.1% 0.096 312.4)

  • #311D00

    #311D00

    oklch(25.1% 0.053 73.1)

  • #002827

    #002827

    oklch(25% 0.043 192.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #310E42

    #310E42

    oklch(25.1% 0.096 312.4)

  • #3E1200

    #3E1200

    oklch(25.2% 0.075 42.7)

  • #142800

    #142800

    oklch(25% 0.07 132.2)

  • #002632

    #002632

    oklch(25% 0.047 223.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #310E42 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.