#405D8D

Closest named color: Denim Blue (#3B5B92). oklch(47.8% 0.085 260.1), rgb(64, 93, 141).

Aa

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

About this color

#405D8D is a medium-dark, moderately saturated blue. In OKLCH its lightness is 48%, its chroma 0.085 and its hue 260°. Its hue sits on the cool side of the wheel. The nearest named color is Denim Blue (#3B5B92), ΔE 0.013 away. White text reads best on it, at 6.62:1.

Hue familyBlues
Lightnessmedium-dark (48%)
Chromamoderately saturated (0.085)
Temperaturecool
Nearest nameDenim Blue (#3B5B92)
Black text3.16:1
White text6.62:1

Values

HEX#405D8D
RGBrgb(64, 93, 141)
HSLhsl(217, 38%, 40%)
OKLCHoklch(47.8% 0.085 260.1)

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 #405D8D 6.62:1 AA Lc -87.7 Fine for body text
Black text on #405D8D 3.16:1 AA large text Lc 21.4 Dividers and decoration only
#405D8D text on white 6.62:1 AA Lc 82.7 Fine for body text
#405D8D text on black 3.16:1 AA large text Lc -19.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 700.

  1. Step 50

    50

    #F3F6F9

    oklch(97.2% 0.005 247.9)

  2. Step 100

    100

    #E5EAF2

    oklch(93.6% 0.012 259.8)

  3. Step 200

    200

    #D0DAE9

    oklch(88.5% 0.023 258.4)

  4. Step 300

    300

    #B1C2DC

    oklch(81% 0.041 258.8)

  5. Step 400

    400

    #89A2CA

    oklch(70.8% 0.065 259.7)

  6. Step 500

    500

    #6B8ABD

    oklch(63% 0.085 260.1)

  7. Step 600

    600

    #5374A9

    oklch(55.7% 0.091 259.6)

  8. Step 700

    700 (this color)

    #405D8D

    oklch(47.8% 0.085 260.1)

  9. Step 800

    800

    #384F76

    oklch(42.7% 0.071 260.6)

  10. Step 900

    900

    #30425F

    oklch(37.7% 0.055 259.7)

  11. Step 950

    950

    #1C2738

    oklch(27.1% 0.035 258.9)

Export this scale for Tailwind in the Tailwind colors tool

#405D8D 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)#4A618F0.018
Deuteranopia (no green cones)#41598C0.011
Tritanopia (no blue cones)#17686E0.077
Achromatopsia (no color)#5D5D5D0.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #405D8D

    #405D8D

    oklch(47.8% 0.085 260.1)

  • #76571B

    #76571B

    oklch(47.8% 0.085 80.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405D8D

    #405D8D

    oklch(47.8% 0.085 260.1)

  • #1A6584

    #1A6584

    oklch(47.7% 0.086 230.7)

  • #5D548A

    #5D548A

    oklch(47.8% 0.086 290.4)

Open the analogous palette in the generator

Split complementary

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

  • #405D8D

    #405D8D

    oklch(47.8% 0.085 260.1)

  • #834E2E

    #834E2E

    oklch(47.8% 0.085 50.7)

  • #606121

    #606121

    oklch(47.8% 0.085 110.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405D8D

    #405D8D

    oklch(47.8% 0.085 260.1)

  • #874849

    #874849

    oklch(47.9% 0.086 19.8)

  • #426939

    #426939

    oklch(47.9% 0.086 139.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405D8D

    #405D8D

    oklch(47.8% 0.085 260.1)

  • #814864

    #814864

    oklch(47.9% 0.086 350)

  • #76571B

    #76571B

    oklch(47.8% 0.085 80.2)

  • #1A6C56

    #1A6C56

    oklch(47.7% 0.085 170.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #405D8D 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.