#313E6C

Closest named color: Twilight Blue (#0A437A). oklch(37.6% 0.081 270.3), rgb(49, 62, 108).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (38%)
Chromamoderately saturated (0.081)
Temperaturecool
Nearest nameTwilight Blue (#0A437A)
Black text2.03:1
White text10.31:1

Values

HEX#313E6C
RGBrgb(49, 62, 108)
HSLhsl(227, 38%, 31%)
OKLCHoklch(37.6% 0.081 270.3)

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 #313E6C 10.31:1 AAA Lc -97.9 Preferred for body text
Black text on #313E6C 2.03:1 Fails Lc 10.1 Not readable
#313E6C text on white 10.31:1 AAA Lc 93.8 Preferred for body text
#313E6C text on black 2.03:1 Fails Lc -8.7 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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5EAF6

    oklch(93.7% 0.017 267.8)

  3. Step 200

    200

    #D0D9F0

    oklch(88.6% 0.033 268.7)

  4. Step 300

    300

    #B1BFE9

    oklch(80.8% 0.061 270.5)

  5. Step 400

    400

    #899EDE

    oklch(70.8% 0.097 269.9)

  6. Step 500

    500

    #6D84D4

    oklch(63.1% 0.124 270.4)

  7. Step 600

    600

    #566CC1

    oklch(55.5% 0.134 270.6)

  8. Step 700

    700

    #465AA7

    oklch(49.1% 0.125 270.3)

  9. Step 800

    800

    #3A4A87

    oklch(42.7% 0.103 270.5)

  10. Step 900

    900 (this color)

    #313E6C

    oklch(37.6% 0.081 270.3)

  11. Step 950

    950

    #1D253F

    oklch(27.1% 0.05 269.9)

Export this scale for Tailwind in the Tailwind colors tool

#313E6C 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)#2B436E0.016
Deuteranopia (no green cones)#253E6B0.016
Tritanopia (no blue cones)#16484F0.073
Achromatopsia (no color)#4040400.081

Harmonies

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

Complementary

The opposite hue (180°).

  • #313E6C

    #313E6C

    oklch(37.6% 0.081 270.3)

  • #513F00

    #513F00

    oklch(37.6% 0.077 90.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313E6C

    #313E6C

    oklch(37.6% 0.081 270.3)

  • #0A4668

    #0A4668

    oklch(37.7% 0.081 240.4)

  • #483665

    #483665

    oklch(37.5% 0.08 300.2)

Open the analogous palette in the generator

Split complementary

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

  • #313E6C

    #313E6C

    oklch(37.6% 0.081 270.3)

  • #60350A

    #60350A

    oklch(37.6% 0.081 59.6)

  • #3C470D

    #3C470D

    oklch(37.6% 0.08 119.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313E6C

    #313E6C

    oklch(37.6% 0.081 270.3)

  • #652F26

    #652F26

    oklch(37.6% 0.08 31)

  • #1B4D2A

    #1B4D2A

    oklch(37.6% 0.08 150.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313E6C

    #313E6C

    oklch(37.6% 0.081 270.3)

  • #632D3F

    #632D3F

    oklch(37.6% 0.081 0.6)

  • #513F00

    #513F00

    oklch(37.6% 0.077 90.4)

  • #004D43

    #004D43

    oklch(37.7% 0.068 180.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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