#40478B

Closest named color: Blueberry (#464196). oklch(42.8% 0.111 276.2), rgb(64, 71, 139).

Aa

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

About this color

#40478B is a dark, moderately saturated blue. In OKLCH its lightness is 43%, its chroma 0.111 and its hue 276°. Its hue sits on the cool side of the wheel. The nearest named color is Blueberry (#464196), ΔE 0.026 away. White text reads best on it, at 8.42:1.

Hue familyBlues
Lightnessdark (43%)
Chromamoderately saturated (0.111)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.49:1
White text8.42:1

Values

HEX#40478B
RGBrgb(64, 71, 139)
HSLhsl(234, 37%, 40%)
OKLCHoklch(42.8% 0.111 276.2)

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 #40478B 8.42:1 AAA Lc -93.4 Preferred for body text
Black text on #40478B 2.49:1 Fails Lc 15.1 Dividers and decoration only
#40478B text on white 8.42:1 AAA Lc 88.9 Fine for body text
#40478B text on black 2.49:1 Fails Lc -13.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

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E6E9F7

    oklch(93.6% 0.019 276.3)

  3. Step 200

    200

    #D2D8F2

    oklch(88.6% 0.036 275.3)

  4. Step 300

    300

    #B5BEEB

    oklch(81% 0.064 276)

  5. Step 400

    400

    #8F9BE1

    oklch(70.7% 0.103 276)

  6. Step 500

    500

    #7580D9

    oklch(63.1% 0.134 276.5)

  7. Step 600

    600

    #5E68C6

    oklch(55.6% 0.144 276.1)

  8. Step 700

    700

    #4E56AB

    oklch(49.1% 0.134 276.2)

  9. Step 800

    800 (this color)

    #40478B

    oklch(42.8% 0.111 276.2)

  10. Step 900

    900

    #363C6F

    oklch(37.7% 0.087 276.3)

  11. Step 950

    950

    #1F2341

    oklch(26.9% 0.056 276.2)

Export this scale for Tailwind in the Tailwind colors tool

#40478B 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)#28508D0.035
Deuteranopia (no green cones)#204A8A0.037
Tritanopia (no blue cones)#1F56620.098
Achromatopsia (no color)#4D4D4D0.112

Harmonies

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

Complementary

The opposite hue (180°).

  • #40478B

    #40478B

    oklch(42.8% 0.111 276.2)

  • #5E4E00

    #5E4E00

    oklch(42.8% 0.088 95.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40478B

    #40478B

    oklch(42.8% 0.111 276.2)

  • #005387

    #005387

    oklch(42.8% 0.11 245.8)

  • #5F3C7F

    #5F3C7F

    oklch(42.8% 0.112 306.4)

Open the analogous palette in the generator

Split complementary

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

  • #40478B

    #40478B

    oklch(42.8% 0.111 276.2)

  • #714300

    #714300

    oklch(42.8% 0.095 66.9)

  • #405900

    #405900

    oklch(42.8% 0.109 126.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40478B

    #40478B

    oklch(42.8% 0.111 276.2)

  • #81341F

    #81341F

    oklch(42.9% 0.112 36.1)

  • #005F36

    #005F36

    oklch(42.7% 0.103 156.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40478B

    #40478B

    oklch(42.8% 0.111 276.2)

  • #7F3045

    #7F3045

    oklch(42.7% 0.111 6.6)

  • #5E4E00

    #5E4E00

    oklch(42.8% 0.088 95.4)

  • #005C55

    #005C55

    oklch(42.7% 0.075 185.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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