#40519E

Closest named color: Twilight (#4E518B). oklch(46.2% 0.126 271.3), rgb(64, 81, 158).

Aa

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

About this color

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

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

Values

HEX#40519E
RGBrgb(64, 81, 158)
HSLhsl(229, 42%, 44%)
OKLCHoklch(46.2% 0.126 271.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 #40519E 7.26:1 AAA Lc -89.9 Fine for body text
Black text on #40519E 2.88:1 Fails Lc 19.0 Dividers and decoration only
#40519E text on white 7.26:1 AAA Lc 85.0 Fine for body text
#40519E text on black 2.88: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

    #E5E9F6

    oklch(93.5% 0.018 272.3)

  3. Step 200

    200

    #D1D8F0

    oklch(88.4% 0.034 272.8)

  4. Step 300

    300

    #B2BFE9

    oklch(80.9% 0.061 271.5)

  5. Step 400

    400

    #8A9DDE

    oklch(70.7% 0.098 271.2)

  6. Step 500

    500

    #6E84D5

    oklch(63.2% 0.125 271)

  7. Step 600

    600

    #576CC2

    oklch(55.6% 0.135 271.1)

  8. Step 700

    700 (this color)

    #40519E

    oklch(46.2% 0.126 271.3)

  9. Step 800

    800

    #3B4988

    oklch(42.6% 0.105 271.8)

  10. Step 900

    900

    #323E6C

    oklch(37.7% 0.08 271.1)

  11. Step 950

    950

    #1D2540

    oklch(27.1% 0.052 270.2)

Export this scale for Tailwind in the Tailwind colors tool

#40519E 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)#2B5BA10.032
Deuteranopia (no green cones)#1C539C0.035
Tritanopia (no blue cones)#0062700.110
Achromatopsia (no color)#5757570.126

Harmonies

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

Complementary

The opposite hue (180°).

  • #40519E

    #40519E

    oklch(46.2% 0.126 271.3)

  • #6C5600

    #6C5600

    oklch(46.2% 0.095 91.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40519E

    #40519E

    oklch(46.2% 0.126 271.3)

  • #005E8F

    #005E8F

    oklch(46.1% 0.109 241.6)

  • #664493

    #664493

    oklch(46.2% 0.127 301.5)

Open the analogous palette in the generator

Split complementary

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

  • #40519E

    #40519E

    oklch(46.2% 0.126 271.3)

  • #824800

    #824800

    oklch(46.2% 0.107 61.4)

  • #4F6100

    #4F6100

    oklch(46.1% 0.111 121.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40519E

    #40519E

    oklch(46.2% 0.126 271.3)

  • #923729

    #923729

    oklch(46.3% 0.126 31.1)

  • #006B32

    #006B32

    oklch(46.2% 0.124 151.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40519E

    #40519E

    oklch(46.2% 0.126 271.3)

  • #8E3454

    #8E3454

    oklch(46.2% 0.126 1.2)

  • #6C5600

    #6C5600

    oklch(46.2% 0.095 91.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 #40519E, closest first.

Similar named colors

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

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