#31327F

Closest named color: Dark Slate Blue (#483D8B). oklch(36.5% 0.127 277.5), rgb(49, 50, 127).

Aa

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

About this color

#31327F is a dark, moderately saturated blue. In OKLCH its lightness is 36%, its chroma 0.127 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.053 away. White text reads best on it, at 11.09:1.

Hue familyBlues
Lightnessdark (36%)
Chromamoderately saturated (0.127)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text1.89:1
White text11.09:1

Values

HEX#31327F
RGBrgb(49, 50, 127)
HSLhsl(239, 44%, 35%)
OKLCHoklch(36.5% 0.127 277.5)

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 #31327F 11.09:1 AAA Lc -99.1 Preferred for body text
Black text on #31327F 1.89:1 Fails Lc 8.6 Not readable
#31327F text on white 11.09:1 AAA Lc 95.3 Preferred for body text
#31327F text on black 1.89:1 Fails Lc -7.4 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

    #F3F5FE

    oklch(97.1% 0.012 276.1)

  2. Step 100

    100

    #E5E9FD

    oklch(93.7% 0.027 276.8)

  3. Step 200

    200

    #D0D7FD

    oklch(88.6% 0.053 277)

  4. Step 300

    300

    #B1BBFE

    oklch(80.9% 0.095 277.5)

  5. Step 400

    400

    #8B95FE

    oklch(70.8% 0.153 277.6)

  6. Step 500

    500

    #7176FC

    oklch(63.1% 0.195 277.6)

  7. Step 600

    600

    #5C5AEB

    oklch(55.6% 0.212 277.6)

  8. Step 700

    700

    #4C49CC

    oklch(49.1% 0.196 277.3)

  9. Step 800

    800

    #3E3DA5

    oklch(42.7% 0.163 277.4)

  10. Step 900

    900 (this color)

    #31327F

    oklch(36.5% 0.127 277.5)

  11. Step 950

    950

    #1E204D

    oklch(27% 0.081 277.5)

Export this scale for Tailwind in the Tailwind colors tool

#31327F 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)#003F820.049
Deuteranopia (no green cones)#00387D0.045
Tritanopia (no blue cones)#0044530.109
Achromatopsia (no color)#3C3C3C0.127

Harmonies

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

Complementary

The opposite hue (180°).

  • #31327F

    #31327F

    oklch(36.5% 0.127 277.5)

  • #493E00

    #493E00

    oklch(36.4% 0.075 97.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31327F

    #31327F

    oklch(36.5% 0.127 277.5)

  • #00416E

    #00416E

    oklch(36.5% 0.097 247.2)

  • #502671

    #502671

    oklch(36.5% 0.126 307)

Open the analogous palette in the generator

Split complementary

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

  • #31327F

    #31327F

    oklch(36.5% 0.127 277.5)

  • #5A3500

    #5A3500

    oklch(36.6% 0.08 67.7)

  • #304700

    #304700

    oklch(36.5% 0.095 127.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31327F

    #31327F

    oklch(36.5% 0.127 277.5)

  • #701E00

    #701E00

    oklch(36.6% 0.121 37.6)

  • #004B2C

    #004B2C

    oklch(36.4% 0.085 157.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31327F

    #31327F

    oklch(36.5% 0.127 277.5)

  • #711432

    #711432

    oklch(36.5% 0.127 7.6)

  • #493E00

    #493E00

    oklch(36.4% 0.075 97.9)

  • #004944

    #004944

    oklch(36.5% 0.064 187)

Open the square palette in the generator

Palettes and gradients that use #31327F

These curated palettes and gradients contain exactly #31327F. Open one to see the full color scheme around it.

Gradients

Similar named colors

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

Use #31327F 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.