#313772

Closest named color: Twilight Blue (#0A437A). oklch(36.5% 0.1 275.9), rgb(49, 55, 114).

Aa

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

About this color

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

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

Values

HEX#313772
RGBrgb(49, 55, 114)
HSLhsl(234, 40%, 32%)
OKLCHoklch(36.5% 0.1 275.9)

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 #313772 10.93:1 AAA Lc -99.0 Preferred for body text
Black text on #313772 1.92:1 Fails Lc 8.8 Not readable
#313772 text on white 10.93:1 AAA Lc 95.1 Preferred for body text
#313772 text on black 1.92:1 Fails Lc -7.5 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

    #E5E9F9

    oklch(93.6% 0.022 274.7)

  3. Step 200

    200

    #D1D7F5

    oklch(88.4% 0.042 276.6)

  4. Step 300

    300

    #B3BDF2

    oklch(80.9% 0.076 276.3)

  5. Step 400

    400

    #8C99EB

    oklch(70.6% 0.121 276)

  6. Step 500

    500

    #717EE5

    oklch(63.1% 0.154 275.7)

  7. Step 600

    600

    #5B65D3

    oklch(55.6% 0.167 275.6)

  8. Step 700

    700

    #4B53B7

    oklch(49.1% 0.156 275.6)

  9. Step 800

    800

    #3E4494

    oklch(42.7% 0.13 276.2)

  10. Step 900

    900 (this color)

    #313772

    oklch(36.5% 0.1 275.9)

  11. Step 950

    950

    #1E2345

    oklch(27.1% 0.063 275.1)

Export this scale for Tailwind in the Tailwind colors tool

#313772 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)#1A3F740.032
Deuteranopia (no green cones)#113A710.035
Tritanopia (no blue cones)#11444F0.088
Achromatopsia (no color)#3D3D3D0.100

Harmonies

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

Complementary

The opposite hue (180°).

  • #313772

    #313772

    oklch(36.5% 0.1 275.9)

  • #4A3E00

    #4A3E00

    oklch(36.5% 0.075 96.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313772

    #313772

    oklch(36.5% 0.1 275.9)

  • #00416C

    #00416C

    oklch(36.4% 0.094 246.1)

  • #4B2E67

    #4B2E67

    oklch(36.5% 0.099 305.5)

Open the analogous palette in the generator

Split complementary

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

  • #313772

    #313772

    oklch(36.5% 0.1 275.9)

  • #5B3400

    #5B3400

    oklch(36.5% 0.082 65.6)

  • #324600

    #324600

    oklch(36.4% 0.092 125.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313772

    #313772

    oklch(36.5% 0.1 275.9)

  • #692614

    #692614

    oklch(36.5% 0.101 35.9)

  • #004C29

    #004C29

    oklch(36.6% 0.09 155.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313772

    #313772

    oklch(36.5% 0.1 275.9)

  • #672236

    #672236

    oklch(36.3% 0.1 5.7)

  • #4A3E00

    #4A3E00

    oklch(36.5% 0.075 96.7)

  • #004943

    #004943

    oklch(36.5% 0.064 185.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #313772 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.