#313F85

Closest named color: Cobalt (#1E488F). oklch(39.6% 0.118 271.5), rgb(49, 63, 133).

Aa

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

About this color

#313F85 is a dark, moderately saturated blue. In OKLCH its lightness is 40%, its chroma 0.118 and its hue 272°. Its hue sits on the cool side of the wheel. The nearest named color is Cobalt (#1E488F), ΔE 0.031 away. White text reads best on it, at 9.63:1.

Hue familyBlues
Lightnessdark (40%)
Chromamoderately saturated (0.118)
Temperaturecool
Nearest nameCobalt (#1E488F)
Black text2.18:1
White text9.63:1

Values

HEX#313F85
RGBrgb(49, 63, 133)
HSLhsl(230, 46%, 36%)
OKLCHoklch(39.6% 0.118 271.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 #313F85 9.63:1 AAA Lc -96.3 Preferred for body text
Black text on #313F85 2.18:1 Fails Lc 11.9 Not readable
#313F85 text on white 9.63:1 AAA Lc 92.0 Preferred for body text
#313F85 text on black 2.18:1 Fails Lc -10.4 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

    #F2F5FE

    oklch(97% 0.012 271.3)

  2. Step 100

    100

    #E3E9FC

    oklch(93.5% 0.027 271.9)

  3. Step 200

    200

    #CDD8FB

    oklch(88.5% 0.05 271.6)

  4. Step 300

    300

    #ACBEFB

    oklch(81% 0.089 271.6)

  5. Step 400

    400

    #819AF8

    oklch(70.7% 0.141 271.2)

  6. Step 500

    500

    #647DF5

    oklch(63.1% 0.181 271.5)

  7. Step 600

    600

    #4E62E4

    oklch(55.5% 0.197 271.8)

  8. Step 700

    700

    #3F51C6

    oklch(49.2% 0.182 271.4)

  9. Step 800

    800

    #3443A0

    oklch(42.7% 0.151 271.5)

  10. Step 900

    900 (this color)

    #313F85

    oklch(39.6% 0.118 271.5)

  11. Step 950

    950

    #1A224A

    oklch(26.9% 0.075 272)

Export this scale for Tailwind in the Tailwind colors tool

#313F85 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)#1849870.034
Deuteranopia (no green cones)#0241840.038
Tritanopia (no blue cones)#004F5B0.102
Achromatopsia (no color)#4545450.118

Harmonies

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

Complementary

The opposite hue (180°).

  • #313F85

    #313F85

    oklch(39.6% 0.118 271.5)

  • #574400

    #574400

    oklch(39.6% 0.081 90.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #313F85

    #313F85

    oklch(39.6% 0.118 271.5)

  • #004B74

    #004B74

    oklch(39.6% 0.094 242)

  • #53337B

    #53337B

    oklch(39.6% 0.119 301.7)

Open the analogous palette in the generator

Split complementary

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

  • #313F85

    #313F85

    oklch(39.6% 0.118 271.5)

  • #693900

    #693900

    oklch(39.6% 0.092 61.4)

  • #3F4E00

    #3F4E00

    oklch(39.7% 0.096 121.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #313F85

    #313F85

    oklch(39.6% 0.118 271.5)

  • #79271A

    #79271A

    oklch(39.6% 0.117 31.6)

  • #005627

    #005627

    oklch(39.7% 0.106 151.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #313F85

    #313F85

    oklch(39.6% 0.118 271.5)

  • #762442

    #762442

    oklch(39.6% 0.117 1.6)

  • #574400

    #574400

    oklch(39.6% 0.081 90.6)

  • #005349

    #005349

    oklch(39.7% 0.071 181.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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