#40529A

Closest named color: Twilight (#4E518B). oklch(46.1% 0.119 270.6), rgb(64, 82, 154).

Aa

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

About this color

#40529A is a medium-dark, moderately saturated blue. In OKLCH its lightness is 46%, its chroma 0.119 and its hue 271°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.030 away. White text reads best on it, at 7.26:1.

Hue familyBlues
Lightnessmedium-dark (46%)
Chromamoderately saturated (0.119)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text2.89:1
White text7.26:1

Values

HEX#40529A
RGBrgb(64, 82, 154)
HSLhsl(228, 41%, 43%)
OKLCHoklch(46.1% 0.119 270.6)

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 #40529A 7.26:1 AAA Lc -89.9 Fine for body text
Black text on #40529A 2.89:1 Fails Lc 19.0 Dividers and decoration only
#40529A text on white 7.26:1 AAA Lc 85.0 Fine for body text
#40529A text on black 2.89:1 Fails Lc -17.0 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

    #D1D9EF

    oklch(88.6% 0.031 269.8)

  4. Step 300

    300

    #B2BFE7

    oklch(80.8% 0.058 270.9)

  5. Step 400

    400

    #8B9EDA

    oklch(70.7% 0.091 270.5)

  6. Step 500

    500

    #6F85D0

    oklch(63.2% 0.116 270.4)

  7. Step 600

    600

    #586DBE

    oklch(55.7% 0.128 270.8)

  8. Step 700

    700 (this color)

    #40529A

    oklch(46.1% 0.119 270.6)

  9. Step 800

    800

    #3B4A84

    oklch(42.6% 0.098 270.8)

  10. Step 900

    900

    #323E6A

    oklch(37.6% 0.077 270.8)

  11. Step 950

    950

    #1D253E

    oklch(27% 0.048 269.5)

Export this scale for Tailwind in the Tailwind colors tool

#40529A 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)#315B9D0.027
Deuteranopia (no green cones)#2453980.030
Tritanopia (no blue cones)#00626E0.106
Achromatopsia (no color)#5757570.119

Harmonies

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

Complementary

The opposite hue (180°).

  • #40529A

    #40529A

    oklch(46.1% 0.119 270.6)

  • #6C5500

    #6C5500

    oklch(46% 0.094 90.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40529A

    #40529A

    oklch(46.1% 0.119 270.6)

  • #005E8E

    #005E8E

    oklch(46.1% 0.107 241)

  • #644690

    #644690

    oklch(46.2% 0.119 300.5)

Open the analogous palette in the generator

Split complementary

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

  • #40529A

    #40529A

    oklch(46.1% 0.119 270.6)

  • #824700

    #824700

    oklch(46% 0.107 60.5)

  • #506100

    #506100

    oklch(46.2% 0.111 120.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40529A

    #40529A

    oklch(46.1% 0.119 270.6)

  • #8F3A2D

    #8F3A2D

    oklch(46.2% 0.118 30.9)

  • #0F6A33

    #0F6A33

    oklch(46.1% 0.118 150.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40529A

    #40529A

    oklch(46.1% 0.119 270.6)

  • #8B3755

    #8B3755

    oklch(46.1% 0.118 0.5)

  • #6C5500

    #6C5500

    oklch(46% 0.094 90.5)

  • #00675B

    #00675B

    oklch(46.1% 0.083 181.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40529A 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.