#31597A

Closest named color: YInMn Blue (#415A77). oklch(45% 0.071 245.2), rgb(49, 89, 122).

Aa

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

About this color

#31597A is a dark, moderately saturated blue. In OKLCH its lightness is 45%, its chroma 0.071 and its hue 245°. Its hue sits on the cool side of the wheel. The nearest named color is YInMn Blue (#415A77), ΔE 0.019 away. White text reads best on it, at 7.39:1.

Hue familyBlues
Lightnessdark (45%)
Chromamoderately saturated (0.071)
Temperaturecool
Nearest nameYInMn Blue (#415A77)
Black text2.84:1
White text7.39:1

Values

HEX#31597A
RGBrgb(49, 89, 122)
HSLhsl(207, 43%, 34%)
OKLCHoklch(45% 0.071 245.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 #31597A 7.39:1 AAA Lc -90.4 Preferred for body text
Black text on #31597A 2.84:1 Fails Lc 18.5 Dividers and decoration only
#31597A text on white 7.39:1 AAA Lc 85.5 Fine for body text
#31597A text on black 2.84:1 Fails Lc -16.5 Dividers and decoration only

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 800.

  1. Step 50

    50

    #F2F6F9

    oklch(97.1% 0.006 239.8)

  2. Step 100

    100

    #E4EBF1

    oklch(93.6% 0.011 243.7)

  3. Step 200

    200

    #CDDBE8

    oklch(88.5% 0.023 246.1)

  4. Step 300

    300

    #ABC4DA

    oklch(80.9% 0.041 244.9)

  5. Step 400

    400

    #7EA5C8

    oklch(70.6% 0.067 246)

  6. Step 500

    500

    #5C8FBA

    oklch(63.1% 0.085 245.2)

  7. Step 600

    600

    #4178A6

    oklch(55.5% 0.093 245.8)

  8. Step 700

    700

    #33658E

    oklch(49.1% 0.085 245.5)

  9. Step 800

    800 (this color)

    #31597A

    oklch(45% 0.071 245.2)

  10. Step 900

    900

    #27455D

    oklch(37.8% 0.055 244.1)

  11. Step 950

    950

    #172836

    oklch(26.9% 0.035 244.4)

Export this scale for Tailwind in the Tailwind colors tool

#31597A 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)#4B5A7C0.033
Deuteranopia (no green cones)#4152790.026
Tritanopia (no blue cones)#0061640.058
Achromatopsia (no color)#5656560.071

Harmonies

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

Complementary

The opposite hue (180°).

  • #31597A

    #31597A

    oklch(45% 0.071 245.2)

  • #704D28

    #704D28

    oklch(45% 0.07 65.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31597A

    #31597A

    oklch(45% 0.071 245.2)

  • #185F6E

    #185F6E

    oklch(45% 0.071 215.3)

  • #4A527C

    #4A527C

    oklch(45% 0.07 275)

Open the analogous palette in the generator

Split complementary

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

  • #31597A

    #31597A

    oklch(45% 0.071 245.2)

  • #77463A

    #77463A

    oklch(44.9% 0.071 34.6)

  • #615522

    #615522

    oklch(45% 0.071 96.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31597A

    #31597A

    oklch(45% 0.071 245.2)

  • #764450

    #764450

    oklch(45% 0.07 4.8)

  • #4C5C2F

    #4C5C2F

    oklch(45% 0.07 125.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31597A

    #31597A

    oklch(45% 0.071 245.2)

  • #6E4665

    #6E4665

    oklch(45.1% 0.071 335.2)

  • #704D28

    #704D28

    oklch(45% 0.07 65.9)

  • #326144

    #326144

    oklch(45% 0.071 155.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31597A 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.