#310D3B

Closest named color: Dark Purple (#35063E). oklch(24.4% 0.09 318.1), rgb(49, 13, 59).

Aa

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

About this color

#310D3B is a very dark, moderately saturated purple. In OKLCH its lightness is 24%, its chroma 0.090 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.016 away. White text reads best on it, at 16.78:1.

Hue familyPurples
Lightnessvery dark (24%)
Chromamoderately saturated (0.090)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.25:1
White text16.78:1

Values

HEX#310D3B
RGBrgb(49, 13, 59)
HSLhsl(287, 64%, 14%)
OKLCHoklch(24.4% 0.09 318.1)

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 #310D3B 16.78:1 AAA Lc -105.8 Preferred for body text
Black text on #310D3B 1.25:1 Fails Lc 0.0 Not readable
#310D3B text on white 16.78:1 AAA Lc 103.3 Preferred for body text
#310D3B text on black 1.25: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

    #FAF3FC

    oklch(97.2% 0.014 318.7)

  2. Step 100

    100

    #F3E4F8

    oklch(93.7% 0.031 317.7)

  3. Step 200

    200

    #EACDF3

    oklch(88.4% 0.06 318.1)

  4. Step 300

    300

    #DEABED

    oklch(81% 0.106 318.4)

  5. Step 400

    400

    #CC7AE4

    oklch(70.7% 0.171 318.2)

  6. Step 500

    500

    #BE51DC

    oklch(63.1% 0.218 318.3)

  7. Step 600

    600

    #A92CCA

    oklch(55.7% 0.237 318)

  8. Step 700

    700

    #911BAE

    oklch(49.1% 0.219 318.2)

  9. Step 800

    800

    #761B8D

    oklch(42.7% 0.182 318.3)

  10. Step 900

    900

    #5F1F71

    oklch(37.7% 0.142 317.9)

  11. Step 950

    950 (this color)

    #310D3B

    oklch(24.4% 0.09 318.1)

Export this scale for Tailwind in the Tailwind colors tool

#310D3B 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)#001B3C0.089
Deuteranopia (no green cones)#0F1F3A0.077
Tritanopia (no blue cones)#3116220.058
Achromatopsia (no color)#1D1D1D0.091

Harmonies

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

Complementary

The opposite hue (180°).

  • #310D3B

    #310D3B

    oklch(24.4% 0.09 318.1)

  • #0A2800

    #0A2800

    oklch(24.4% 0.076 138.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #310D3B

    #310D3B

    oklch(24.4% 0.09 318.1)

  • #201547

    #201547

    oklch(24.4% 0.089 288.1)

  • #3C0627

    #3C0627

    oklch(24.3% 0.09 348.5)

Open the analogous palette in the generator

Split complementary

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

  • #310D3B

    #310D3B

    oklch(24.4% 0.09 318.1)

  • #232200

    #232200

    oklch(24.5% 0.053 108.1)

  • #00271C

    #00271C

    oklch(24.2% 0.048 169.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #310D3B

    #310D3B

    oklch(24.4% 0.09 318.1)

  • #2D1D00

    #2D1D00

    oklch(24.5% 0.051 79.5)

  • #002627

    #002627

    oklch(24.4% 0.041 197.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #310D3B

    #310D3B

    oklch(24.4% 0.09 318.1)

  • #381400

    #381400

    oklch(24.4% 0.066 48.5)

  • #0A2800

    #0A2800

    oklch(24.4% 0.076 138.2)

  • #002432

    #002432

    oklch(24.3% 0.048 228.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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