#312C85

Closest named color: Dark Slate Blue (#483D8B). oklch(35.9% 0.144 278.8), rgb(49, 44, 133).

Aa

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

About this color

#312C85 is a dark, vivid blue. In OKLCH its lightness is 36%, its chroma 0.144 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.061 away. White text reads best on it, at 11.47:1.

Hue familyBlues
Lightnessdark (36%)
Chromavivid (0.144)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text1.82:1
White text11.47:1

Values

HEX#312C85
RGBrgb(49, 44, 133)
HSLhsl(243, 50%, 35%)
OKLCHoklch(35.9% 0.144 278.8)

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 #312C85 11.47:1 AAA Lc -99.7 Preferred for body text
Black text on #312C85 1.82:1 Fails Lc 8.0 Not readable
#312C85 text on white 11.47:1 AAA Lc 95.9 Preferred for body text
#312C85 text on black 1.82: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

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E5E8FF

    oklch(93.6% 0.031 279.9)

  3. Step 200

    200

    #D0D6FF

    oklch(88.5% 0.057 278.6)

  4. Step 300

    300

    #B2BAFF

    oklch(80.8% 0.098 278.8)

  5. Step 400

    400

    #8D94FF

    oklch(70.8% 0.155 278.8)

  6. Step 500

    500

    #7474FF

    oklch(63.2% 0.201 278.9)

  7. Step 600

    600

    #5F51F9

    oklch(55.6% 0.239 278.9)

  8. Step 700

    700

    #4F40D9

    oklch(49.1% 0.222 278.8)

  9. Step 800

    800

    #4036B0

    oklch(42.7% 0.185 278.7)

  10. Step 900

    900 (this color)

    #312C85

    oklch(35.9% 0.144 278.8)

  11. Step 950

    950

    #1F1E51

    oklch(27% 0.091 279.3)

Export this scale for Tailwind in the Tailwind colors tool

#312C85 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)#003D880.055
Deuteranopia (no green cones)#0036830.048
Tritanopia (no blue cones)#0043540.121
Achromatopsia (no color)#3939390.144

Harmonies

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

Complementary

The opposite hue (180°).

  • #312C85

    #312C85

    oklch(35.9% 0.144 278.8)

  • #473D00

    #473D00

    oklch(35.9% 0.074 98.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #312C85

    #312C85

    oklch(35.9% 0.144 278.8)

  • #003F6D

    #003F6D

    oklch(35.9% 0.097 248.3)

  • #521D74

    #521D74

    oklch(35.8% 0.143 308.6)

Open the analogous palette in the generator

Split complementary

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

  • #312C85

    #312C85

    oklch(35.9% 0.144 278.8)

  • #573400

    #573400

    oklch(36% 0.078 69)

  • #2D4600

    #2D4600

    oklch(36% 0.095 129)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #312C85

    #312C85

    oklch(35.9% 0.144 278.8)

  • #6C1F00

    #6C1F00

    oklch(35.9% 0.115 38.9)

  • #00492C

    #00492C

    oklch(35.7% 0.082 158.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #312C85

    #312C85

    oklch(35.9% 0.144 278.8)

  • #74002D

    #74002D

    oklch(35.8% 0.143 8.7)

  • #473D00

    #473D00

    oklch(35.9% 0.074 98.8)

  • #004743

    #004743

    oklch(35.9% 0.062 188.4)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #312C85.

Similar named colors

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

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