#31396C

Closest named color: Twilight Blue (#0A437A). oklch(36.5% 0.088 274.5), rgb(49, 57, 108).

Aa

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

About this color

#31396C is a dark, moderately saturated blue. In OKLCH its lightness is 36%, its chroma 0.088 and its hue 274°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight Blue (#0A437A), ΔE 0.045 away. White text reads best on it, at 10.86:1.

Hue familyBlues
Lightnessdark (36%)
Chromamoderately saturated (0.088)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text1.93:1
White text10.86:1

Values

HEX#31396C
RGBrgb(49, 57, 108)
HSLhsl(232, 38%, 31%)
OKLCHoklch(36.5% 0.088 274.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 #31396C 10.86:1 AAA Lc -98.9 Preferred for body text
Black text on #31396C 1.93:1 Fails Lc 8.9 Not readable
#31396C text on white 10.86:1 AAA Lc 95.0 Preferred for body text
#31396C text on black 1.93:1 Fails Lc -7.6 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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E6E9F7

    oklch(93.6% 0.019 276.3)

  3. Step 200

    200

    #D1D8F2

    oklch(88.5% 0.037 273.7)

  4. Step 300

    300

    #B3BEEC

    oklch(80.9% 0.066 274.3)

  5. Step 400

    400

    #8D9BE2

    oklch(70.6% 0.105 274.9)

  6. Step 500

    500

    #7281DA

    oklch(63.1% 0.135 274.7)

  7. Step 600

    600

    #5B69C8

    oklch(55.7% 0.147 274.3)

  8. Step 700

    700

    #4B57AD

    oklch(49.2% 0.136 274.3)

  9. Step 800

    800

    #3D478C

    oklch(42.6% 0.114 274.3)

  10. Step 900

    900 (this color)

    #31396C

    oklch(36.5% 0.088 274.5)

  11. Step 950

    950

    #1E2441

    oklch(27% 0.055 273.4)

Export this scale for Tailwind in the Tailwind colors tool

#31396C 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)#23406E0.025
Deuteranopia (no green cones)#1D3B6B0.025
Tritanopia (no blue cones)#17444D0.078
Achromatopsia (no color)#3D3D3D0.088

Harmonies

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

Complementary

The opposite hue (180°).

  • #31396C

    #31396C

    oklch(36.5% 0.088 274.5)

  • #4B3D00

    #4B3D00

    oklch(36.4% 0.075 94.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31396C

    #31396C

    oklch(36.5% 0.088 274.5)

  • #044269

    #044269

    oklch(36.5% 0.088 244.2)

  • #493163

    #493163

    oklch(36.5% 0.087 304.6)

Open the analogous palette in the generator

Split complementary

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

  • #31396C

    #31396C

    oklch(36.5% 0.088 274.5)

  • #5B3300

    #5B3300

    oklch(36.3% 0.082 64.3)

  • #344604

    #344604

    oklch(36.5% 0.089 124.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31396C

    #31396C

    oklch(36.5% 0.088 274.5)

  • #642A1C

    #642A1C

    oklch(36.4% 0.088 34.8)

  • #054B28

    #054B28

    oklch(36.4% 0.088 154.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31396C

    #31396C

    oklch(36.5% 0.088 274.5)

  • #632738

    #632738

    oklch(36.4% 0.089 4.8)

  • #4B3D00

    #4B3D00

    oklch(36.4% 0.075 94.3)

  • #004942

    #004942

    oklch(36.4% 0.065 184)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31396C 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.