#312F6F

Closest named color: Marine Blue (#01386A). oklch(34.5% 0.108 280.6), rgb(49, 47, 111).

Aa

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

About this color

#312F6F is a dark, moderately saturated purple. In OKLCH its lightness is 35%, its chroma 0.108 and its hue 281°. Its hue sits on the cool side of the wheel. The nearest named color is Marine Blue (#01386A), ΔE 0.052 away. White text reads best on it, at 11.88:1.

Hue familyPurples
Lightnessdark (35%)
Chromamoderately saturated (0.108)
Temperaturecool
Nearest nameMarine Blue (#01386A)
Black text1.76:1
White text11.88:1

Values

HEX#312F6F
RGBrgb(49, 47, 111)
HSLhsl(242, 41%, 31%)
OKLCHoklch(34.5% 0.108 280.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 #312F6F 11.88:1 AAA Lc -100.6 Preferred for body text
Black text on #312F6F 1.76:1 Fails Lc 0.0 Not readable
#312F6F text on white 11.88:1 AAA Lc 97.0 Preferred for body text
#312F6F text on black 1.76: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 900.

  1. Step 50

    50

    #F4F5FD

    oklch(97.2% 0.011 280.5)

  2. Step 100

    100

    #E6E8FA

    oklch(93.5% 0.024 280.9)

  3. Step 200

    200

    #D3D6F7

    oklch(88.4% 0.045 281.3)

  4. Step 300

    300

    #B6BBF4

    oklch(80.8% 0.081 280.5)

  5. Step 400

    400

    #9296EF

    oklch(70.7% 0.129 280.6)

  6. Step 500

    500

    #7979EA

    oklch(63% 0.166 280.5)

  7. Step 600

    600

    #645FD8

    oklch(55.5% 0.18 280.6)

  8. Step 700

    700

    #534EBB

    oklch(49.1% 0.166 280.4)

  9. Step 800

    800

    #444197

    oklch(42.8% 0.137 280.5)

  10. Step 900

    900 (this color)

    #312F6F

    oklch(34.5% 0.108 280.6)

  11. Step 950

    950

    #212147

    oklch(27% 0.069 280.7)

Export this scale for Tailwind in the Tailwind colors tool

#312F6F 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)#073A710.048
Deuteranopia (no green cones)#00356E0.049
Tritanopia (no blue cones)#163E4A0.093
Achromatopsia (no color)#3737370.108

Harmonies

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

Complementary

The opposite hue (180°).

  • #312F6F

    #312F6F

    oklch(34.5% 0.108 280.6)

  • #423A00

    #423A00

    oklch(34.6% 0.072 100.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312F6F

    #312F6F

    oklch(34.5% 0.108 280.6)

  • #003A6A

    #003A6A

    oklch(34.4% 0.099 250.7)

  • #4B2562

    #4B2562

    oklch(34.6% 0.108 310.7)

Open the analogous palette in the generator

Split complementary

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

  • #312F6F

    #312F6F

    oklch(34.5% 0.108 280.6)

  • #513100

    #513100

    oklch(34.4% 0.074 70.4)

  • #284200

    #284200

    oklch(34.5% 0.093 130.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312F6F

    #312F6F

    oklch(34.5% 0.108 280.6)

  • #651F00

    #651F00

    oklch(34.6% 0.108 40.4)

  • #00452B

    #00452B

    oklch(34.5% 0.078 160.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312F6F

    #312F6F

    oklch(34.5% 0.108 280.6)

  • #65192C

    #65192C

    oklch(34.5% 0.108 10.2)

  • #423A00

    #423A00

    oklch(34.6% 0.072 100.7)

  • #004340

    #004340

    oklch(34.5% 0.06 189.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #312F6F 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.