#4040AB

Closest named color: Blueberry (#464196). oklch(43.9% 0.167 277), rgb(64, 64, 171).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (44%)
Chromavivid (0.167)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.53:1
White text8.26:1

Values

HEX#4040AB
RGBrgb(64, 64, 171)
HSLhsl(240, 46%, 46%)
OKLCHoklch(43.9% 0.167 277)

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 #4040AB 8.26:1 AAA Lc -92.7 Preferred for body text
Black text on #4040AB 2.53:1 Fails Lc 15.9 Dividers and decoration only
#4040AB text on white 8.26:1 AAA Lc 88.1 Fine for body text
#4040AB text on black 2.53:1 Fails Lc -14.1 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

    #F3F5FE

    oklch(97.1% 0.012 276.1)

  2. Step 100

    100

    #E5E9FD

    oklch(93.7% 0.027 276.8)

  3. Step 200

    200

    #CFD7FD

    oklch(88.5% 0.053 275.9)

  4. Step 300

    300

    #B0BBFF

    oklch(80.8% 0.097 276.9)

  5. Step 400

    400

    #8A95FF

    oklch(70.7% 0.154 277.2)

  6. Step 500

    500

    #6F76FE

    oklch(63.1% 0.199 276.9)

  7. Step 600

    600

    #5B5AEE

    oklch(55.7% 0.216 277.1)

  8. Step 700

    700

    #4B48CF

    oklch(49.1% 0.202 277)

  9. Step 800

    800 (this color)

    #4040AB

    oklch(43.9% 0.167 277)

  10. Step 900

    900

    #333584

    oklch(37.6% 0.13 277.1)

  11. Step 950

    950

    #1E204D

    oklch(27% 0.081 277.5)

Export this scale for Tailwind in the Tailwind colors tool

#4040AB 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)#0053AE0.061
Deuteranopia (no green cones)#004AA90.053
Tritanopia (no blue cones)#005B6F0.141
Achromatopsia (no color)#4E4E4E0.167

Harmonies

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

Complementary

The opposite hue (180°).

  • #4040AB

    #4040AB

    oklch(43.9% 0.167 277)

  • #605200

    #605200

    oklch(43.9% 0.091 97.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #4040AB

    #4040AB

    oklch(43.9% 0.167 277)

  • #00558E

    #00558E

    oklch(43.8% 0.116 247.5)

  • #6B2E98

    #6B2E98

    oklch(43.9% 0.167 307.2)

Open the analogous palette in the generator

Split complementary

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

  • #4040AB

    #4040AB

    oklch(43.9% 0.167 277)

  • #754600

    #754600

    oklch(43.9% 0.097 67.3)

  • #415D00

    #415D00

    oklch(43.9% 0.114 127.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #4040AB

    #4040AB

    oklch(43.9% 0.167 277)

  • #912800

    #912800

    oklch(43.9% 0.147 37.1)

  • #00633A

    #00633A

    oklch(44% 0.105 157)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #4040AB

    #4040AB

    oklch(43.9% 0.167 277)

  • #960F42

    #960F42

    oklch(43.8% 0.167 7)

  • #605200

    #605200

    oklch(43.9% 0.091 97.8)

  • #006059

    #006059

    oklch(44% 0.077 186.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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