#313E7B

Closest named color: Twilight Blue (#0A437A). oklch(38.6% 0.104 271.7), rgb(49, 62, 123).

Aa

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

About this color

#313E7B is a dark, moderately saturated blue. In OKLCH its lightness is 39%, its chroma 0.104 and its hue 272°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight Blue (#0A437A), ΔE 0.036 away. White text reads best on it, at 9.97:1.

Hue familyBlues
Lightnessdark (39%)
Chromamoderately saturated (0.104)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text2.10:1
White text9.97:1

Values

HEX#313E7B
RGBrgb(49, 62, 123)
HSLhsl(229, 43%, 34%)
OKLCHoklch(38.6% 0.104 271.7)

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 #313E7B 9.97:1 AAA Lc -97.1 Preferred for body text
Black text on #313E7B 2.10:1 Fails Lc 11.0 Not readable
#313E7B text on white 9.97:1 AAA Lc 92.9 Preferred for body text
#313E7B text on black 2.10:1 Fails Lc -9.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

    #F3F5FD

    oklch(97.1% 0.011 274.9)

  2. Step 100

    100

    #E4E9FA

    oklch(93.5% 0.024 272.8)

  3. Step 200

    200

    #CFD8F7

    oklch(88.5% 0.044 272.7)

  4. Step 300

    300

    #AEBEF4

    oklch(80.8% 0.079 271.7)

  5. Step 400

    400

    #859BEE

    oklch(70.7% 0.124 271.6)

  6. Step 500

    500

    #6880E9

    oklch(63.2% 0.159 271.5)

  7. Step 600

    600

    #5166D7

    oklch(55.5% 0.174 271.7)

  8. Step 700

    700

    #4254BB

    oklch(49% 0.163 271.6)

  9. Step 800

    800

    #374697

    oklch(42.8% 0.133 271.7)

  10. Step 900

    900 (this color)

    #313E7B

    oklch(38.6% 0.104 271.7)

  11. Step 950

    950

    #1B2346

    oklch(26.9% 0.066 271.6)

Export this scale for Tailwind in the Tailwind colors tool

#313E7B 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)#20467D0.027
Deuteranopia (no green cones)#153F7A0.030
Tritanopia (no blue cones)#004C560.093
Achromatopsia (no color)#4242420.104

Harmonies

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

Complementary

The opposite hue (180°).

  • #313E7B

    #313E7B

    oklch(38.6% 0.104 271.7)

  • #534200

    #534200

    oklch(38.6% 0.079 92.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313E7B

    #313E7B

    oklch(38.6% 0.104 271.7)

  • #004970

    #004970

    oklch(38.8% 0.091 241.3)

  • #4F3472

    #4F3472

    oklch(38.7% 0.104 301.9)

Open the analogous palette in the generator

Split complementary

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

  • #313E7B

    #313E7B

    oklch(38.6% 0.104 271.7)

  • #653700

    #653700

    oklch(38.6% 0.089 61.8)

  • #3C4B00

    #3C4B00

    oklch(38.6% 0.093 121.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313E7B

    #313E7B

    oklch(38.6% 0.104 271.7)

  • #712A1E

    #712A1E

    oklch(38.6% 0.103 31.7)

  • #005326

    #005326

    oklch(38.7% 0.103 151.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313E7B

    #313E7B

    oklch(38.6% 0.104 271.7)

  • #6F2740

    #6F2740

    oklch(38.7% 0.105 1.8)

  • #534200

    #534200

    oklch(38.6% 0.079 92.2)

  • #005047

    #005047

    oklch(38.7% 0.069 182.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #313E7B 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.