#313F7D

Closest named color: Twilight Blue (#0A437A). oklch(39% 0.106 271.2), rgb(49, 63, 125).

Aa

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

About this color

#313F7D is a dark, moderately saturated blue. In OKLCH its lightness is 39%, its chroma 0.106 and its hue 271°. 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.82:1.

Hue familyBlues
Lightnessdark (39%)
Chromamoderately saturated (0.106)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text2.13:1
White text9.82:1

Values

HEX#313F7D
RGBrgb(49, 63, 125)
HSLhsl(229, 44%, 34%)
OKLCHoklch(39% 0.106 271.2)

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 #313F7D 9.82:1 AAA Lc -96.8 Preferred for body text
Black text on #313F7D 2.13:1 Fails Lc 11.4 Not readable
#313F7D text on white 9.82:1 AAA Lc 92.6 Preferred for body text
#313F7D text on black 2.13:1 Fails Lc -9.9 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

    #CED8F7

    oklch(88.4% 0.044 271.3)

  4. Step 300

    300

    #AEBEF5

    oklch(80.9% 0.08 271.9)

  5. Step 400

    400

    #849BF0

    oklch(70.7% 0.127 271.3)

  6. Step 500

    500

    #6780EA

    oklch(63.2% 0.161 271.2)

  7. Step 600

    600

    #5066D9

    oklch(55.6% 0.177 271.3)

  8. Step 700

    700

    #4154BC

    oklch(49.1% 0.164 271.2)

  9. Step 800

    800

    #354698

    oklch(42.8% 0.135 270.8)

  10. Step 900

    900 (this color)

    #313F7D

    oklch(39% 0.106 271.2)

  11. Step 950

    950

    #1B2347

    oklch(27% 0.068 271.8)

Export this scale for Tailwind in the Tailwind colors tool

#313F7D 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)#21477F0.026
Deuteranopia (no green cones)#15407C0.029
Tritanopia (no blue cones)#004D580.093
Achromatopsia (no color)#4343430.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #313F7D

    #313F7D

    oklch(39% 0.106 271.2)

  • #554300

    #554300

    oklch(39.1% 0.08 91.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313F7D

    #313F7D

    oklch(39% 0.106 271.2)

  • #004A71

    #004A71

    oklch(39.1% 0.091 241)

  • #4F3574

    #4F3574

    oklch(39% 0.105 300.7)

Open the analogous palette in the generator

Split complementary

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

  • #313F7D

    #313F7D

    oklch(39% 0.106 271.2)

  • #673700

    #673700

    oklch(38.9% 0.091 60.5)

  • #3E4C00

    #3E4C00

    oklch(39% 0.094 121)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313F7D

    #313F7D

    oklch(39% 0.106 271.2)

  • #732A1F

    #732A1F

    oklch(39% 0.106 30.9)

  • #005426

    #005426

    oklch(39% 0.104 151.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313F7D

    #313F7D

    oklch(39% 0.106 271.2)

  • #702841

    #702841

    oklch(39% 0.105 1.7)

  • #554300

    #554300

    oklch(39.1% 0.08 91.4)

  • #005147

    #005147

    oklch(39% 0.07 180.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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