#40479B

Closest named color: Blueberry (#464196). oklch(43.9% 0.135 275.8), rgb(64, 71, 155).

Aa

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

About this color

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

Hue familyBlues
Lightnessdark (44%)
Chromamoderately saturated (0.135)
Temperaturecool
Nearest nameBlueberry (#464196)
Black text2.59:1
White text8.09:1

Values

HEX#40479B
RGBrgb(64, 71, 155)
HSLhsl(235, 42%, 43%)
OKLCHoklch(43.9% 0.135 275.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 #40479B 8.09:1 AAA Lc -92.4 Preferred for body text
Black text on #40479B 2.59:1 Fails Lc 16.2 Dividers and decoration only
#40479B text on white 8.09:1 AAA Lc 87.8 Fine for body text
#40479B text on black 2.59:1 Fails Lc -14.4 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

    #E5E9FA

    oklch(93.6% 0.023 275.4)

  3. Step 200

    200

    #D1D7F7

    oklch(88.5% 0.044 277.1)

  4. Step 300

    300

    #B2BDF4

    oklch(80.9% 0.079 275.7)

  5. Step 400

    400

    #8B99EF

    oklch(70.7% 0.127 275.7)

  6. Step 500

    500

    #707DE9

    oklch(63.1% 0.161 275.6)

  7. Step 600

    600

    #5A63D7

    oklch(55.5% 0.175 275.7)

  8. Step 700

    700

    #4B52BB

    oklch(49.2% 0.163 275.8)

  9. Step 800

    800 (this color)

    #40479B

    oklch(43.9% 0.135 275.8)

  10. Step 900

    900

    #333A78

    oklch(37.7% 0.105 275.3)

  11. Step 950

    950

    #1E2246

    oklch(26.9% 0.066 276.2)

Export this scale for Tailwind in the Tailwind colors tool

#40479B 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)#14549E0.049
Deuteranopia (no green cones)#004C990.052
Tritanopia (no blue cones)#035A6A0.118
Achromatopsia (no color)#5050500.135

Harmonies

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

Complementary

The opposite hue (180°).

  • #40479B

    #40479B

    oklch(43.9% 0.135 275.8)

  • #615100

    #615100

    oklch(43.8% 0.09 95.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40479B

    #40479B

    oklch(43.9% 0.135 275.8)

  • #00568C

    #00568C

    oklch(43.9% 0.113 245.9)

  • #65398C

    #65398C

    oklch(43.9% 0.136 306)

Open the analogous palette in the generator

Split complementary

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

  • #40479B

    #40479B

    oklch(43.9% 0.135 275.8)

  • #764500

    #764500

    oklch(43.9% 0.098 65.6)

  • #435C00

    #435C00

    oklch(43.8% 0.111 125.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40479B

    #40479B

    oklch(43.9% 0.135 275.8)

  • #8D2D13

    #8D2D13

    oklch(43.8% 0.135 35.5)

  • #006338

    #006338

    oklch(43.9% 0.107 155.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40479B

    #40479B

    oklch(43.9% 0.135 275.8)

  • #8B2847

    #8B2847

    oklch(43.8% 0.135 5.7)

  • #615100

    #615100

    oklch(43.8% 0.09 95.9)

  • #006058

    #006058

    oklch(44% 0.077 185)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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