#40487C

Closest named color: Twilight (#4E518B). oklch(42% 0.087 275.4), rgb(64, 72, 124).

Aa

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

About this color

#40487C is a dark, moderately saturated blue. In OKLCH its lightness is 42%, its chroma 0.087 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.041 away. White text reads best on it, at 8.62:1.

Hue familyBlues
Lightnessdark (42%)
Chromamoderately saturated (0.087)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text2.43:1
White text8.62:1

Values

HEX#40487C
RGBrgb(64, 72, 124)
HSLhsl(232, 32%, 37%)
OKLCHoklch(42% 0.087 275.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 #40487C 8.62:1 AAA Lc -94.0 Preferred for body text
Black text on #40487C 2.43:1 Fails Lc 14.5 Not readable
#40487C text on white 8.62:1 AAA Lc 89.5 Fine for body text
#40487C text on black 2.43:1 Fails Lc -12.7 Not readable

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

    #F4F5FA

    oklch(97.1% 0.007 277.2)

  2. Step 100

    100

    #E7E9F4

    oklch(93.6% 0.015 277.8)

  3. Step 200

    200

    #D3D8EC

    oklch(88.4% 0.028 274.6)

  4. Step 300

    300

    #B7BFE2

    oklch(81% 0.05 275.1)

  5. Step 400

    400

    #929DD4

    oklch(70.8% 0.082 275.4)

  6. Step 500

    500

    #7884C8

    oklch(63.2% 0.103 275.4)

  7. Step 600

    600

    #616CB5

    oklch(55.5% 0.114 275.6)

  8. Step 700

    700

    #505A9C

    oklch(49.1% 0.106 275.3)

  9. Step 800

    800 (this color)

    #40487C

    oklch(42% 0.087 275.4)

  10. Step 900

    900

    #373E65

    oklch(37.6% 0.067 275)

  11. Step 950

    950

    #20253B

    oklch(27.1% 0.042 273.5)

Export this scale for Tailwind in the Tailwind colors tool

#40487C 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)#344E7E0.022
Deuteranopia (no green cones)#2F497B0.023
Tritanopia (no blue cones)#2A535C0.077
Achromatopsia (no color)#4C4C4C0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #40487C

    #40487C

    oklch(42% 0.087 275.4)

  • #5C4C00

    #5C4C00

    oklch(42% 0.086 95.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40487C

    #40487C

    oklch(42% 0.087 275.4)

  • #1C5179

    #1C5179

    oklch(42% 0.087 245)

  • #584073

    #584073

    oklch(42% 0.086 304.6)

Open the analogous palette in the generator

Split complementary

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

  • #40487C

    #40487C

    oklch(42% 0.087 275.4)

  • #6D420D

    #6D420D

    oklch(42.1% 0.087 65.5)

  • #42551A

    #42551A

    oklch(42% 0.087 125.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40487C

    #40487C

    oklch(42% 0.087 275.4)

  • #753A2B

    #753A2B

    oklch(42.1% 0.087 35.3)

  • #1B5B38

    #1B5B38

    oklch(42.1% 0.087 155.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40487C

    #40487C

    oklch(42% 0.087 275.4)

  • #743746

    #743746

    oklch(42.1% 0.087 6)

  • #5C4C00

    #5C4C00

    oklch(42% 0.086 95.1)

  • #005A53

    #005A53

    oklch(42.1% 0.074 185.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40487C 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.