#40409B

Closest named color: Blueberry (#464196). oklch(42.6% 0.145 278.3), rgb(64, 64, 155).

Aa

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

About this color

#40409B is a dark, vivid blue. In OKLCH its lightness is 43%, its chroma 0.145 and its hue 278°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.013 away. White text reads best on it, at 8.66:1.

Hue familyBlues
Lightnessdark (43%)
Chromavivid (0.145)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.42:1
White text8.66:1

Values

HEX#40409B
RGBrgb(64, 64, 155)
HSLhsl(240, 42%, 43%)
OKLCHoklch(42.6% 0.145 278.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 #40409B 8.66:1 AAA Lc -93.9 Preferred for body text
Black text on #40409B 2.42:1 Fails Lc 14.6 Not readable
#40409B text on white 8.66:1 AAA Lc 89.4 Fine for body text
#40409B text on black 2.42:1 Fails Lc -12.9 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

    #F3F5FD

    oklch(97.1% 0.011 274.9)

  2. Step 100

    100

    #E6E9FB

    oklch(93.7% 0.024 278.4)

  3. Step 200

    200

    #D1D7F9

    oklch(88.5% 0.047 277.5)

  4. Step 300

    300

    #B4BCF7

    oklch(81% 0.084 278.4)

  5. Step 400

    400

    #8E97F3

    oklch(70.8% 0.134 278.1)

  6. Step 500

    500

    #747AEF

    oklch(63.2% 0.172 278)

  7. Step 600

    600

    #5F5FDD

    oklch(55.5% 0.187 278.4)

  8. Step 700

    700

    #4F4EC0

    oklch(49.2% 0.174 278.3)

  9. Step 800

    800 (this color)

    #40409B

    oklch(42.6% 0.145 278.3)

  10. Step 900

    900

    #36387C

    oklch(37.8% 0.113 278.3)

  11. Step 950

    950

    #1F2148

    oklch(26.9% 0.071 278.2)

Export this scale for Tailwind in the Tailwind colors tool

#40409B 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)#004F9E0.059
Deuteranopia (no green cones)#0048990.055
Tritanopia (no blue cones)#0656670.126
Achromatopsia (no color)#4B4B4B0.145

Harmonies

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

Complementary

The opposite hue (180°).

  • #40409B

    #40409B

    oklch(42.6% 0.145 278.3)

  • #5B4E00

    #5B4E00

    oklch(42.4% 0.088 98.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40409B

    #40409B

    oklch(42.6% 0.145 278.3)

  • #00518A

    #00518A

    oklch(42.5% 0.116 248.4)

  • #65318A

    #65318A

    oklch(42.5% 0.146 308.3)

Open the analogous palette in the generator

Split complementary

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

  • #40409B

    #40409B

    oklch(42.6% 0.145 278.3)

  • #6F4300

    #6F4300

    oklch(42.5% 0.093 68.3)

  • #3C5900

    #3C5900

    oklch(42.5% 0.111 128.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40409B

    #40409B

    oklch(42.6% 0.145 278.3)

  • #8A2900

    #8A2900

    oklch(42.7% 0.139 38.4)

  • #005E39

    #005E39

    oklch(42.5% 0.099 158.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40409B

    #40409B

    oklch(42.6% 0.145 278.3)

  • #8B1E3F

    #8B1E3F

    oklch(42.6% 0.145 8.3)

  • #5B4E00

    #5B4E00

    oklch(42.4% 0.088 98.1)

  • #005B56

    #005B56

    oklch(42.5% 0.074 188.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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