#405171

Closest named color: YInMn Blue (#415A77). oklch(43.5% 0.057 262.6), rgb(64, 81, 113).

Aa

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

About this color

#405171 is a dark, muted blue. In OKLCH its lightness is 43%, its chroma 0.057 and its hue 263°. Its hue sits on the cool side of the wheel. The nearest named color is YInMn Blue (#415A77), ΔE 0.027 away. White text reads best on it, at 7.97:1.

Hue familyBlues
Lightnessdark (43%)
Chromamuted (0.057)
Temperaturecool
Nearest nameYInMn Blue (#415A77)
Black text2.63:1
White text7.97:1

Values

HEX#405171
RGBrgb(64, 81, 113)
HSLhsl(219, 28%, 35%)
OKLCHoklch(43.5% 0.057 262.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 #405171 7.97:1 AAA Lc -92.3 Preferred for body text
Black text on #405171 2.63:1 Fails Lc 16.4 Dividers and decoration only
#405171 text on white 7.97:1 AAA Lc 87.6 Fine for body text
#405171 text on black 2.63:1 Fails Lc -14.5 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 800.

  1. Step 50

    50

    #F4F5F8

    oklch(97% 0.004 271.4)

  2. Step 100

    100

    #E6EAF1

    oklch(93.6% 0.01 261.8)

  3. Step 200

    200

    #D3D9E6

    oklch(88.5% 0.019 266)

  4. Step 300

    300

    #B5C1D7

    oklch(80.9% 0.034 262.7)

  5. Step 400

    400

    #8FA1C3

    oklch(70.7% 0.054 263.1)

  6. Step 500

    500

    #738AB4

    oklch(63.2% 0.069 262.2)

  7. Step 600

    600

    #5C739F

    oklch(55.5% 0.074 262.9)

  8. Step 700

    700

    #4B6188

    oklch(49.2% 0.068 261.5)

  9. Step 800

    800 (this color)

    #405171

    oklch(43.5% 0.057 262.6)

  10. Step 900

    900

    #35425A

    oklch(37.8% 0.045 262.4)

  11. Step 950

    950

    #1F2735

    oklch(27.2% 0.029 261.4)

Export this scale for Tailwind in the Tailwind colors tool

#405171 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)#4653720.011
Deuteranopia (no green cones)#404F700.006
Tritanopia (no blue cones)#2F585C0.052
Achromatopsia (no color)#5151510.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #405171

    #405171

    oklch(43.5% 0.057 262.6)

  • #614E2A

    #614E2A

    oklch(43.5% 0.058 82.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405171

    #405171

    oklch(43.5% 0.057 262.6)

  • #2E576C

    #2E576C

    oklch(43.6% 0.058 232.5)

  • #524B6E

    #524B6E

    oklch(43.4% 0.057 293)

Open the analogous palette in the generator

Split complementary

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

  • #405171

    #405171

    oklch(43.5% 0.057 262.6)

  • #6A4833

    #6A4833

    oklch(43.4% 0.057 52.4)

  • #51542E

    #51542E

    oklch(43.3% 0.057 112.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405171

    #405171

    oklch(43.5% 0.057 262.6)

  • #6D4442

    #6D4442

    oklch(43.4% 0.057 22.7)

  • #3E593C

    #3E593C

    oklch(43.4% 0.057 142.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405171

    #405171

    oklch(43.5% 0.057 262.6)

  • #6A4454

    #6A4454

    oklch(43.5% 0.057 352.9)

  • #614E2A

    #614E2A

    oklch(43.5% 0.058 82.2)

  • #2C5B4E

    #2C5B4E

    oklch(43.4% 0.056 173.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #405171 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.