#405CB7

Closest named color: Mid Blue (#276AB3). oklch(50.2% 0.147 267.9), rgb(64, 92, 183).

Aa

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

About this color

#405CB7 is a medium-dark, vivid blue. In OKLCH its lightness is 50%, its chroma 0.147 and its hue 268°. Its hue sits on the cool side of the wheel. The nearest named color is Mid Blue (#276AB3), ΔE 0.042 away. White text reads best on it, at 6.11:1.

Hue familyBlues
Lightnessmedium-dark (50%)
Chromavivid (0.147)
Temperaturecool
Nearest nameMid Blue (#276AB3)
Black text3.43:1
White text6.11:1

Values

HEX#405CB7
RGBrgb(64, 92, 183)
HSLhsl(226, 48%, 48%)
OKLCHoklch(50.2% 0.147 267.9)

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 #405CB7 6.11:1 AA Lc -85.4 Fine for body text
Black text on #405CB7 3.43:1 AA large text Lc 23.8 Dividers and decoration only
#405CB7 text on white 6.11:1 AA Lc 80.2 Fine for body text
#405CB7 text on black 3.43:1 AA large text Lc -21.6 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

    #F3F5FC

    oklch(97.1% 0.01 273.4)

  2. Step 100

    100

    #E4EAF8

    oklch(93.7% 0.02 267.3)

  3. Step 200

    200

    #CED9F4

    oklch(88.5% 0.039 267.9)

  4. Step 300

    300

    #ADC0F0

    oklch(81% 0.071 267.9)

  5. Step 400

    400

    #829EE8

    oklch(70.8% 0.113 267.7)

  6. Step 500

    500

    #6383E1

    oklch(63% 0.146 267.9)

  7. Step 600

    600

    #4C6BCF

    oklch(55.6% 0.158 268)

  8. Step 700

    700 (this color)

    #405CB7

    oklch(50.2% 0.147 267.9)

  9. Step 800

    800

    #324991

    oklch(42.7% 0.122 267.7)

  10. Step 900

    900

    #2C3E74

    oklch(37.8% 0.095 267.8)

  11. Step 950

    950

    #1A2444

    oklch(26.9% 0.061 268.9)

Export this scale for Tailwind in the Tailwind colors tool

#405CB7 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)#2A67BA0.032
Deuteranopia (no green cones)#0A5DB50.038
Tritanopia (no blue cones)#0071810.123
Achromatopsia (no color)#6262620.147

Harmonies

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

Complementary

The opposite hue (180°).

  • #405CB7

    #405CB7

    oklch(50.2% 0.147 267.9)

  • #7C5F00

    #7C5F00

    oklch(50.1% 0.102 87.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #405CB7

    #405CB7

    oklch(50.2% 0.147 267.9)

  • #006B9B

    #006B9B

    oklch(50.1% 0.111 238)

  • #6F4CAC

    #6F4CAC

    oklch(50.2% 0.148 297.6)

Open the analogous palette in the generator

Split complementary

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

  • #405CB7

    #405CB7

    oklch(50.2% 0.147 267.9)

  • #954F00

    #954F00

    oklch(50.2% 0.12 58)

  • #5F6C00

    #5F6C00

    oklch(50.3% 0.117 117.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #405CB7

    #405CB7

    oklch(50.2% 0.147 267.9)

  • #A83930

    #A83930

    oklch(50.3% 0.148 28.1)

  • #00792D

    #00792D

    oklch(50.2% 0.146 147.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #405CB7

    #405CB7

    oklch(50.2% 0.147 267.9)

  • #A23764

    #A23764

    oklch(50.3% 0.147 357.8)

  • #7C5F00

    #7C5F00

    oklch(50.1% 0.102 87.8)

  • #007564

    #007564

    oklch(50.3% 0.093 177.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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