#405C8D

Closest named color: Denim Blue (#3B5B92). oklch(47.6% 0.087 261), rgb(64, 92, 141).

Aa

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

About this color

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

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

Values

HEX#405C8D
RGBrgb(64, 92, 141)
HSLhsl(218, 38%, 40%)
OKLCHoklch(47.6% 0.087 261)

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 #405C8D 6.70:1 AA Lc -88.0 Fine for body text
Black text on #405C8D 3.13:1 AA large text Lc 21.1 Dividers and decoration only
#405C8D text on white 6.70:1 AA Lc 83.0 Fine for body text
#405C8D text on black 3.13:1 AA large text Lc -19.0 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

    #F3F5F9

    oklch(97% 0.006 264.5)

  2. Step 100

    100

    #E5EAF2

    oklch(93.6% 0.012 259.8)

  3. Step 200

    200

    #D1DAE9

    oklch(88.6% 0.023 260.7)

  4. Step 300

    300

    #B2C1DC

    oklch(80.8% 0.042 262.3)

  5. Step 400

    400

    #89A1CB

    oklch(70.6% 0.068 261.5)

  6. Step 500

    500

    #6C8ABE

    oklch(63.1% 0.086 261.1)

  7. Step 600

    600

    #5473AA

    oklch(55.6% 0.093 261.4)

  8. Step 700

    700 (this color)

    #405C8D

    oklch(47.6% 0.087 261)

  9. Step 800

    800

    #384F76

    oklch(42.7% 0.071 260.6)

  10. Step 900

    900

    #31425F

    oklch(37.8% 0.055 260.8)

  11. Step 950

    950

    #1D2738

    oklch(27.2% 0.035 260.8)

Export this scale for Tailwind in the Tailwind colors tool

#405C8D 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)#49608F0.017
Deuteranopia (no green cones)#3F598C0.009
Tritanopia (no blue cones)#17676E0.077
Achromatopsia (no color)#5C5C5C0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #405C8D

    #405C8D

    oklch(47.6% 0.087 261)

  • #755718

    #755718

    oklch(47.6% 0.087 81.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405C8D

    #405C8D

    oklch(47.6% 0.087 261)

  • #196584

    #196584

    oklch(47.7% 0.086 230.5)

  • #5D5389

    #5D5389

    oklch(47.6% 0.086 291.3)

Open the analogous palette in the generator

Split complementary

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

  • #405C8D

    #405C8D

    oklch(47.6% 0.087 261)

  • #834D2C

    #834D2C

    oklch(47.6% 0.087 50.8)

  • #5F6120

    #5F6120

    oklch(47.7% 0.086 110.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405C8D

    #405C8D

    oklch(47.6% 0.087 261)

  • #864747

    #864747

    oklch(47.5% 0.086 20.8)

  • #406839

    #406839

    oklch(47.5% 0.086 140.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405C8D

    #405C8D

    oklch(47.6% 0.087 261)

  • #814762

    #814762

    oklch(47.6% 0.086 351.5)

  • #755718

    #755718

    oklch(47.6% 0.087 81.8)

  • #146C56

    #146C56

    oklch(47.6% 0.087 171.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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