#403E9D

Closest named color: Blueberry (#464196). oklch(42.4% 0.15 278.8), rgb(64, 62, 157).

Aa

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

About this color

#403E9D is a dark, vivid blue. In OKLCH its lightness is 42%, its chroma 0.150 and its hue 279°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.017 away. White text reads best on it, at 8.77:1.

Hue familyBlues
Lightnessdark (42%)
Chromavivid (0.150)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.39:1
White text8.77:1

Values

HEX#403E9D
RGBrgb(64, 62, 157)
HSLhsl(241, 43%, 43%)
OKLCHoklch(42.4% 0.15 278.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 #403E9D 8.77:1 AAA Lc -94.1 Preferred for body text
Black text on #403E9D 2.39:1 Fails Lc 14.3 Not readable
#403E9D text on white 8.77:1 AAA Lc 89.6 Fine for body text
#403E9D text on black 2.39:1 Fails Lc -12.6 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

    #E6E9FB

    oklch(93.7% 0.024 278.4)

  3. Step 200

    200

    #D1D7FA

    oklch(88.6% 0.049 277.7)

  4. Step 300

    300

    #B4BBF9

    oklch(80.9% 0.088 279.2)

  5. Step 400

    400

    #8E96F6

    oklch(70.7% 0.14 278.6)

  6. Step 500

    500

    #7578F2

    oklch(63.1% 0.179 278.9)

  7. Step 600

    600

    #605DE1

    oklch(55.6% 0.195 279)

  8. Step 700

    700

    #504CC4

    oklch(49.2% 0.182 278.9)

  9. Step 800

    800 (this color)

    #403E9D

    oklch(42.4% 0.15 278.8)

  10. Step 900

    900

    #36377E

    oklch(37.8% 0.117 278.6)

  11. Step 950

    950

    #1F214A

    oklch(27.1% 0.075 278.1)

Export this scale for Tailwind in the Tailwind colors tool

#403E9D 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)#004FA00.061
Deuteranopia (no green cones)#00479B0.056
Tritanopia (no blue cones)#0155670.130
Achromatopsia (no color)#4B4B4B0.151

Harmonies

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

Complementary

The opposite hue (180°).

  • #403E9D

    #403E9D

    oklch(42.4% 0.15 278.8)

  • #5A4E00

    #5A4E00

    oklch(42.3% 0.088 99.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403E9D

    #403E9D

    oklch(42.4% 0.15 278.8)

  • #00508A

    #00508A

    oklch(42.3% 0.117 249)

  • #662F8B

    #662F8B

    oklch(42.5% 0.15 308.9)

Open the analogous palette in the generator

Split complementary

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

  • #403E9D

    #403E9D

    oklch(42.4% 0.15 278.8)

  • #6E4300

    #6E4300

    oklch(42.4% 0.092 69)

  • #3B5900

    #3B5900

    oklch(42.4% 0.112 128.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403E9D

    #403E9D

    oklch(42.4% 0.15 278.8)

  • #882900

    #882900

    oklch(42.3% 0.136 38.7)

  • #005E3A

    #005E3A

    oklch(42.5% 0.098 158.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403E9D

    #403E9D

    oklch(42.4% 0.15 278.8)

  • #8C193D

    #8C193D

    oklch(42.4% 0.15 8.7)

  • #5A4E00

    #5A4E00

    oklch(42.3% 0.088 99.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 #403E9D, closest first.

Similar named colors

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

Use #403E9D 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.