#31558C

Closest named color: Dusk Blue (#26538D). oklch(45% 0.1 258.6), rgb(49, 85, 140).

Aa

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

About this color

#31558C is a medium-dark, moderately saturated blue. In OKLCH its lightness is 45%, its chroma 0.100 and its hue 259°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk Blue (#26538D), ΔE 0.013 away. White text reads best on it, at 7.47:1.

Hue familyBlues
Lightnessmedium-dark (45%)
Chromamoderately saturated (0.100)
Temperaturecool
Nearest nameDusk Blue (#26538D)
Black text2.80:1
White text7.47:1

Values

HEX#31558C
RGBrgb(49, 85, 140)
HSLhsl(216, 48%, 37%)
OKLCHoklch(45% 0.1 258.6)

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 #31558C 7.47:1 AAA Lc -90.6 Preferred for body text
Black text on #31558C 2.80:1 Fails Lc 18.2 Dividers and decoration only
#31558C text on white 7.47:1 AAA Lc 85.8 Fine for body text
#31558C text on black 2.80:1 Fails Lc -16.3 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

    #F2F6FB

    oklch(97.2% 0.008 253.9)

  2. Step 100

    100

    #E3EAF5

    oklch(93.5% 0.017 259.4)

  3. Step 200

    200

    #CCDAEF

    oklch(88.4% 0.033 258.4)

  4. Step 300

    300

    #AAC2E7

    oklch(80.9% 0.059 259)

  5. Step 400

    400

    #7DA2DB

    oklch(70.7% 0.093 258.8)

  6. Step 500

    500

    #5B8AD1

    oklch(63.1% 0.119 258.4)

  7. Step 600

    600

    #4172BE

    oklch(55.5% 0.13 258.9)

  8. Step 700

    700

    #3360A4

    oklch(49.2% 0.12 258.5)

  9. Step 800

    800 (this color)

    #31558C

    oklch(45% 0.1 258.6)

  10. Step 900

    900

    #27426A

    oklch(37.8% 0.076 258.1)

  11. Step 950

    950

    #17273E

    oklch(27.1% 0.048 257.5)

Export this scale for Tailwind in the Tailwind colors tool

#31558C 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)#3D598E0.019
Deuteranopia (no green cones)#30518B0.012
Tritanopia (no blue cones)#0062690.084
Achromatopsia (no color)#5555550.100

Harmonies

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

Complementary

The opposite hue (180°).

  • #31558C

    #31558C

    oklch(45% 0.1 258.6)

  • #714E00

    #714E00

    oklch(45.1% 0.094 78.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #31558C

    #31558C

    oklch(45% 0.1 258.6)

  • #005E7C

    #005E7C

    oklch(45% 0.088 228.6)

  • #544B89

    #544B89

    oklch(45.1% 0.099 288.4)

Open the analogous palette in the generator

Split complementary

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

  • #31558C

    #31558C

    oklch(45% 0.1 258.6)

  • #81421D

    #81421D

    oklch(45.1% 0.1 48.4)

  • #5A5900

    #5A5900

    oklch(45% 0.098 109)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #31558C

    #31558C

    oklch(45% 0.1 258.6)

  • #843B3F

    #843B3F

    oklch(45% 0.101 18.6)

  • #376228

    #376228

    oklch(45% 0.1 138.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #31558C

    #31558C

    oklch(45% 0.1 258.6)

  • #7D3C5E

    #7D3C5E

    oklch(45.1% 0.099 349.2)

  • #714E00

    #714E00

    oklch(45.1% 0.094 78.9)

  • #00654C

    #00654C

    oklch(45% 0.091 168.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #31558C 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.