#40589D

Closest named color: Denim Blue (#3B5B92). oklch(47.6% 0.115 267.5), rgb(64, 88, 157).

Aa

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

About this color

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

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

Values

HEX#40589D
RGBrgb(64, 88, 157)
HSLhsl(225, 42%, 43%)
OKLCHoklch(47.6% 0.115 267.5)

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 #40589D 6.77:1 AA Lc -88.2 Fine for body text
Black text on #40589D 3.10:1 AA large text Lc 20.9 Dividers and decoration only
#40589D text on white 6.77:1 AA Lc 83.2 Fine for body text
#40589D text on black 3.10:1 AA large text Lc -18.8 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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E5EAF5

    oklch(93.6% 0.016 266.3)

  3. Step 200

    200

    #D0D9EE

    oklch(88.5% 0.031 267.2)

  4. Step 300

    300

    #B1C0E6

    oklch(80.9% 0.056 268.2)

  5. Step 400

    400

    #889FD9

    oklch(70.7% 0.089 267.5)

  6. Step 500

    500

    #6B86CF

    oklch(63.1% 0.115 267.7)

  7. Step 600

    600

    #536FBC

    oklch(55.7% 0.124 267.3)

  8. Step 700

    700 (this color)

    #40589D

    oklch(47.6% 0.115 267.5)

  9. Step 800

    800

    #384C83

    oklch(42.8% 0.095 267.3)

  10. Step 900

    900

    #303F69

    oklch(37.6% 0.075 267.8)

  11. Step 950

    950

    #1C253E

    oklch(26.9% 0.049 268)

Export this scale for Tailwind in the Tailwind colors tool

#40589D 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)#3960A00.022
Deuteranopia (no green cones)#2D579C0.021
Tritanopia (no blue cones)#0067730.101
Achromatopsia (no color)#5B5B5B0.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #40589D

    #40589D

    oklch(47.6% 0.115 267.5)

  • #745800

    #745800

    oklch(47.6% 0.097 87.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40589D

    #40589D

    oklch(47.6% 0.115 267.5)

  • #006490

    #006490

    oklch(47.7% 0.105 237.3)

  • #654C94

    #654C94

    oklch(47.6% 0.115 297.9)

Open the analogous palette in the generator

Split complementary

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

  • #40589D

    #40589D

    oklch(47.6% 0.115 267.5)

  • #8B4900

    #8B4900

    oklch(47.7% 0.114 57.8)

  • #586400

    #586400

    oklch(47.6% 0.11 117.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40589D

    #40589D

    oklch(47.6% 0.115 267.5)

  • #923F37

    #923F37

    oklch(47.6% 0.114 27.7)

  • #246D34

    #246D34

    oklch(47.5% 0.114 147.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40589D

    #40589D

    oklch(47.6% 0.115 267.5)

  • #8E3D5D

    #8E3D5D

    oklch(47.7% 0.115 357.6)

  • #745800

    #745800

    oklch(47.6% 0.097 87.1)

  • #006C5C

    #006C5C

    oklch(47.5% 0.088 177.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40589D 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.