#40587E

Closest named color: YInMn Blue (#415A77). oklch(45.8% 0.069 259.3), rgb(64, 88, 126).

Aa

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

About this color

#40587E is a medium-dark, muted blue. In OKLCH its lightness is 46%, its chroma 0.069 and its hue 259°. Its hue sits on the cool side of the wheel. The nearest named color is YInMn Blue (#415A77), ΔE 0.015 away. White text reads best on it, at 7.20:1.

Hue familyBlues
Lightnessmedium-dark (46%)
Chromamuted (0.069)
Temperaturecool
Nearest nameYInMn Blue (#415A77)
Black text2.91:1
White text7.20:1

Values

HEX#40587E
RGBrgb(64, 88, 126)
HSLhsl(217, 33%, 37%)
OKLCHoklch(45.8% 0.069 259.3)

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 #40587E 7.20:1 AAA Lc -89.8 Fine for body text
Black text on #40587E 2.91:1 Fails Lc 19.1 Dividers and decoration only
#40587E text on white 7.20:1 AAA Lc 84.9 Fine for body text
#40587E text on black 2.91:1 Fails Lc -17.1 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 800.

  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

    #D0DAE8

    oklch(88.5% 0.022 256.7)

  4. Step 300

    300

    #B1C2DB

    oklch(80.9% 0.04 257.9)

  5. Step 400

    400

    #89A2C9

    oklch(70.7% 0.064 259.2)

  6. Step 500

    500

    #6B8ABC

    oklch(63% 0.084 259.7)

  7. Step 600

    600

    #5374A8

    oklch(55.6% 0.09 259.2)

  8. Step 700

    700

    #446190

    oklch(49.1% 0.083 259.7)

  9. Step 800

    800 (this color)

    #40587E

    oklch(45.8% 0.069 259.3)

  10. Step 900

    900

    #30425E

    oklch(37.7% 0.054 259)

  11. Step 950

    950

    #1C2737

    oklch(27% 0.034 257.7)

Export this scale for Tailwind in the Tailwind colors tool

#40587E 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)#4A5A800.016
Deuteranopia (no green cones)#42557D0.009
Tritanopia (no blue cones)#2660650.062
Achromatopsia (no color)#5757570.069

Harmonies

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

Complementary

The opposite hue (180°).

  • #40587E

    #40587E

    oklch(45.8% 0.069 259.3)

  • #6C5327

    #6C5327

    oklch(45.8% 0.069 79.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40587E

    #40587E

    oklch(45.8% 0.069 259.3)

  • #285F76

    #285F76

    oklch(45.9% 0.068 228.5)

  • #56517C

    #56517C

    oklch(45.8% 0.069 288.7)

Open the analogous palette in the generator

Split complementary

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

  • #40587E

    #40587E

    oklch(45.8% 0.069 259.3)

  • #774C34

    #774C34

    oklch(45.9% 0.069 49.6)

  • #5A5B2A

    #5A5B2A

    oklch(45.9% 0.07 109.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40587E

    #40587E

    oklch(45.8% 0.069 259.3)

  • #794748

    #794748

    oklch(45.7% 0.069 18.8)

  • #43613B

    #43613B

    oklch(45.8% 0.069 139.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40587E

    #40587E

    oklch(45.8% 0.069 259.3)

  • #74475D

    #74475D

    oklch(45.7% 0.069 349.4)

  • #6C5327

    #6C5327

    oklch(45.8% 0.069 79.7)

  • #296451

    #296451

    oklch(45.8% 0.069 169.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40587E 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.