#4040AE

Closest named color: Blueberry (#464196). oklch(44.1% 0.171 276.8), rgb(64, 64, 174).

Aa

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

About this color

#4040AE is a dark, vivid blue. In OKLCH its lightness is 44%, its chroma 0.171 and its hue 277°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.040 away. White text reads best on it, at 8.19:1.

Hue familyBlues
Lightnessdark (44%)
Chromavivid (0.171)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.56:1
White text8.19:1

Values

HEX#4040AE
RGBrgb(64, 64, 174)
HSLhsl(240, 46%, 47%)
OKLCHoklch(44.1% 0.171 276.8)

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 #4040AE 8.19:1 AAA Lc -92.5 Preferred for body text
Black text on #4040AE 2.56:1 Fails Lc 16.2 Dividers and decoration only
#4040AE text on white 8.19:1 AAA Lc 87.8 Fine for body text
#4040AE text on black 2.56:1 Fails Lc -14.3 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

    #F3F5FF

    oklch(97.2% 0.013 277.1)

  2. Step 100

    100

    #E4E9FE

    oklch(93.7% 0.029 275.2)

  3. Step 200

    200

    #CFD7FE

    oklch(88.6% 0.054 276.1)

  4. Step 300

    300

    #B0BBFF

    oklch(80.8% 0.097 276.9)

  5. Step 400

    400

    #8995FF

    oklch(70.7% 0.154 276.8)

  6. Step 500

    500

    #6F76FF

    oklch(63.2% 0.2 276.8)

  7. Step 600

    600

    #5A58F1

    oklch(55.6% 0.223 276.9)

  8. Step 700

    700

    #4A47D1

    oklch(49.1% 0.205 276.6)

  9. Step 800

    800 (this color)

    #4040AE

    oklch(44.1% 0.171 276.8)

  10. Step 900

    900

    #333586

    oklch(37.8% 0.133 276.9)

  11. Step 950

    950

    #1D204E

    oklch(27% 0.083 276.5)

Export this scale for Tailwind in the Tailwind colors tool

#4040AE 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)#0054B20.061
Deuteranopia (no green cones)#004AAC0.053
Tritanopia (no blue cones)#005C710.143
Achromatopsia (no color)#4F4F4F0.171

Harmonies

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

Complementary

The opposite hue (180°).

  • #4040AE

    #4040AE

    oklch(44.1% 0.171 276.8)

  • #615200

    #615200

    oklch(44% 0.091 96.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4040AE

    #4040AE

    oklch(44.1% 0.171 276.8)

  • #00568E

    #00568E

    oklch(44.1% 0.115 246.8)

  • #6C2E9A

    #6C2E9A

    oklch(44.2% 0.17 307)

Open the analogous palette in the generator

Split complementary

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

  • #4040AE

    #4040AE

    oklch(44.1% 0.171 276.8)

  • #764600

    #764600

    oklch(44.1% 0.098 66.7)

  • #425D00

    #425D00

    oklch(44% 0.113 126.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4040AE

    #4040AE

    oklch(44.1% 0.171 276.8)

  • #932800

    #932800

    oklch(44.2% 0.149 36.8)

  • #00643A

    #00643A

    oklch(44.3% 0.106 156.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4040AE

    #4040AE

    oklch(44.1% 0.171 276.8)

  • #980B43

    #980B43

    oklch(44.1% 0.17 6.6)

  • #615200

    #615200

    oklch(44% 0.091 96.9)

  • #00605A

    #00605A

    oklch(44% 0.077 187.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #4040AE 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.