#405C9D

Closest named color: Denim Blue (#3B5B92). oklch(48.5% 0.11 265), rgb(64, 92, 157).

Aa

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

About this color

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

Hue familyBlues
Lightnessmedium-dark (49%)
Chromamoderately saturated (0.110)
Temperaturecool
Nearest nameDenim Blue (#3B5B92)
Black text3.23:1
White text6.49:1

Values

HEX#405C9D
RGBrgb(64, 92, 157)
HSLhsl(222, 42%, 43%)
OKLCHoklch(48.5% 0.11 265)

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 #405C9D 6.49:1 AA Lc -87.1 Fine for body text
Black text on #405C9D 3.23:1 AA large text Lc 22.0 Dividers and decoration only
#405C9D text on white 6.49:1 AA Lc 82.0 Fine for body text
#405C9D text on black 3.23:1 AA large text Lc -19.9 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

    #F3F5FA

    oklch(97% 0.007 268.5)

  2. Step 100

    100

    #E5EAF5

    oklch(93.6% 0.016 266.3)

  3. Step 200

    200

    #D0D9ED

    oklch(88.5% 0.029 266.4)

  4. Step 300

    300

    #B0C1E4

    oklch(81% 0.053 264.7)

  5. Step 400

    400

    #87A0D6

    oklch(70.7% 0.084 265.1)

  6. Step 500

    500

    #6988CC

    oklch(63.2% 0.109 264.8)

  7. Step 600

    600

    #5170B8

    oklch(55.5% 0.118 265.2)

  8. Step 700

    700 (this color)

    #405C9D

    oklch(48.5% 0.11 265)

  9. Step 800

    800

    #364D81

    oklch(42.8% 0.091 264.8)

  10. Step 900

    900

    #2F4067

    oklch(37.6% 0.071 265.3)

  11. Step 950

    950

    #1C263D

    oklch(27.1% 0.045 265.6)

Export this scale for Tailwind in the Tailwind colors tool

#405C9D 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)#4063A00.020
Deuteranopia (no green cones)#345A9C0.015
Tritanopia (no blue cones)#006A750.096
Achromatopsia (no color)#5E5E5E0.110

Harmonies

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

Complementary

The opposite hue (180°).

  • #405C9D

    #405C9D

    oklch(48.5% 0.11 265)

  • #795A00

    #795A00

    oklch(48.7% 0.1 85.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405C9D

    #405C9D

    oklch(48.5% 0.11 265)

  • #006790

    #006790

    oklch(48.5% 0.102 234.7)

  • #645096

    #645096

    oklch(48.4% 0.111 295.1)

Open the analogous palette in the generator

Split complementary

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

  • #405C9D

    #405C9D

    oklch(48.5% 0.11 265)

  • #8D4B14

    #8D4B14

    oklch(48.4% 0.11 54.7)

  • #5E6600

    #5E6600

    oklch(48.7% 0.11 115)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405C9D

    #405C9D

    oklch(48.5% 0.11 265)

  • #93433E

    #93433E

    oklch(48.5% 0.109 25.5)

  • #316F35

    #316F35

    oklch(48.6% 0.11 144.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405C9D

    #405C9D

    oklch(48.5% 0.11 265)

  • #8E4162

    #8E4162

    oklch(48.5% 0.111 355.1)

  • #795A00

    #795A00

    oklch(48.7% 0.1 85.2)

  • #006F5C

    #006F5C

    oklch(48.4% 0.091 175.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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