#40527E

Closest named color: Dusk (#4E5481). oklch(44.4% 0.076 266.4), rgb(64, 82, 126).

Aa

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

About this color

#40527E is a dark, moderately saturated blue. In OKLCH its lightness is 44%, its chroma 0.076 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Dusk (#4E5481), ΔE 0.022 away. White text reads best on it, at 7.70:1.

Hue familyBlues
Lightnessdark (44%)
Chromamoderately saturated (0.076)
Temperaturecool
Nearest nameDusk (#4E5481)
Black text2.72:1
White text7.70:1

Values

HEX#40527E
RGBrgb(64, 82, 126)
HSLhsl(223, 33%, 37%)
OKLCHoklch(44.4% 0.076 266.4)

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 #40527E 7.70:1 AAA Lc -91.4 Preferred for body text
Black text on #40527E 2.72:1 Fails Lc 17.3 Dividers and decoration only
#40527E text on white 7.70:1 AAA Lc 86.7 Fine for body text
#40527E text on black 2.72:1 Fails Lc -15.4 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

    #F3F5FA

    oklch(97% 0.007 268.5)

  2. Step 100

    100

    #E6EAF3

    oklch(93.7% 0.013 266.7)

  3. Step 200

    200

    #D2D9EA

    oklch(88.5% 0.025 267.9)

  4. Step 300

    300

    #B3C1DE

    oklch(81% 0.044 264.9)

  5. Step 400

    400

    #8CA0CE

    oklch(70.7% 0.071 266.3)

  6. Step 500

    500

    #7088C1

    oklch(63.1% 0.091 266.3)

  7. Step 600

    600

    #5871AD

    oklch(55.6% 0.098 266.1)

  8. Step 700

    700

    #485E95

    oklch(49% 0.093 266.5)

  9. Step 800

    800 (this color)

    #40527E

    oklch(44.4% 0.076 266.4)

  10. Step 900

    900

    #334161

    oklch(37.8% 0.058 265.6)

  11. Step 950

    950

    #1E2639

    oklch(27% 0.037 266.4)

Export this scale for Tailwind in the Tailwind colors tool

#40527E 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)#4256800.012
Deuteranopia (no green cones)#3B507D0.010
Tritanopia (no blue cones)#275B620.068
Achromatopsia (no color)#5353530.076

Harmonies

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

Complementary

The opposite hue (180°).

  • #40527E

    #40527E

    oklch(44.4% 0.076 266.4)

  • #66501A

    #66501A

    oklch(44.3% 0.076 86.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40527E

    #40527E

    oklch(44.4% 0.076 266.4)

  • #225A78

    #225A78

    oklch(44.5% 0.076 235.6)

  • #584A79

    #584A79

    oklch(44.4% 0.077 296.9)

Open the analogous palette in the generator

Split complementary

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

  • #40527E

    #40527E

    oklch(44.4% 0.076 266.4)

  • #734827

    #734827

    oklch(44.4% 0.075 56.7)

  • #515924

    #515924

    oklch(44.4% 0.076 116.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40527E

    #40527E

    oklch(44.4% 0.076 266.4)

  • #78423D

    #78423D

    oklch(44.4% 0.076 26.1)

  • #365F3A

    #365F3A

    oklch(44.5% 0.076 146.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40527E

    #40527E

    oklch(44.4% 0.076 266.4)

  • #754155

    #754155

    oklch(44.5% 0.076 356.1)

  • #66501A

    #66501A

    oklch(44.3% 0.076 86.2)

  • #136152

    #136152

    oklch(44.3% 0.076 176.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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