#40539B

Closest named color: Denim Blue (#3B5B92). oklch(46.4% 0.119 270.1), rgb(64, 83, 155).

Aa

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

About this color

#40539B is a medium-dark, moderately saturated blue. In OKLCH its lightness is 46%, its chroma 0.119 and its hue 270°. Its hue sits on the cool side of the wheel. The nearest named color is Denim Blue (#3B5B92), ΔE 0.029 away. White text reads best on it, at 7.17:1.

Hue familyBlues
Lightnessmedium-dark (46%)
Chromamoderately saturated (0.119)
Temperaturecool
Nearest nameDenim Blue (#3B5B92)
Black text2.92:1
White text7.17:1

Values

HEX#40539B
RGBrgb(64, 83, 155)
HSLhsl(227, 42%, 43%)
OKLCHoklch(46.4% 0.119 270.1)

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 #40539B 7.17:1 AAA Lc -89.6 Fine for body text
Black text on #40539B 2.92:1 Fails Lc 19.3 Dividers and decoration only
#40539B text on white 7.17:1 AAA Lc 84.7 Fine for body text
#40539B text on black 2.92:1 Fails Lc -17.3 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

    #B2C0E7

    oklch(81% 0.057 269.6)

  5. Step 400

    400

    #8A9EDB

    oklch(70.7% 0.093 270)

  6. Step 500

    500

    #6E85D1

    oklch(63.2% 0.118 270)

  7. Step 600

    600

    #576DBE

    oklch(55.6% 0.128 270.4)

  8. Step 700

    700 (this color)

    #40539B

    oklch(46.4% 0.119 270.1)

  9. Step 800

    800

    #3A4A85

    oklch(42.6% 0.1 270.3)

  10. Step 900

    900

    #323F6A

    oklch(37.8% 0.076 269.8)

  11. Step 950

    950

    #1D253E

    oklch(27% 0.048 269.5)

Export this scale for Tailwind in the Tailwind colors tool

#40539B 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)#325C9E0.027
Deuteranopia (no green cones)#2554990.029
Tritanopia (no blue cones)#00636F0.106
Achromatopsia (no color)#5757570.119

Harmonies

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

Complementary

The opposite hue (180°).

  • #40539B

    #40539B

    oklch(46.4% 0.119 270.1)

  • #6E5600

    #6E5600

    oklch(46.5% 0.095 89.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40539B

    #40539B

    oklch(46.4% 0.119 270.1)

  • #005F8E

    #005F8E

    oklch(46.3% 0.107 240.2)

  • #644791

    #644791

    oklch(46.4% 0.119 299.9)

Open the analogous palette in the generator

Split complementary

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

  • #40539B

    #40539B

    oklch(46.4% 0.119 270.1)

  • #844800

    #844800

    oklch(46.5% 0.109 60.4)

  • #526100

    #526100

    oklch(46.3% 0.11 119.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40539B

    #40539B

    oklch(46.4% 0.119 270.1)

  • #903A2E

    #903A2E

    oklch(46.4% 0.119 30.2)

  • #136B33

    #136B33

    oklch(46.5% 0.119 150.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40539B

    #40539B

    oklch(46.4% 0.119 270.1)

  • #8C3856

    #8C3856

    oklch(46.5% 0.118 0.5)

  • #6E5600

    #6E5600

    oklch(46.5% 0.095 89.9)

  • #00685B

    #00685B

    oklch(46.4% 0.084 180.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40539B 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.