#40476C

Closest named color: Dark Grey Blue (#29465B). oklch(40.8% 0.063 275.1), rgb(64, 71, 108).

Aa

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

About this color

#40476C is a dark, muted blue. In OKLCH its lightness is 41%, its chroma 0.063 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.045 away. White text reads best on it, at 8.99:1.

Hue familyBlues
Lightnessdark (41%)
Chromamuted (0.063)
Temperaturecool
Nearest nameDark Grey Blue (#29465B)
Black text2.33:1
White text8.99:1

Values

HEX#40476C
RGBrgb(64, 71, 108)
HSLhsl(230, 26%, 34%)
OKLCHoklch(40.8% 0.063 275.1)

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 #40476C 8.99:1 AAA Lc -95.0 Preferred for body text
Black text on #40476C 2.33:1 Fails Lc 13.4 Not readable
#40476C text on white 8.99:1 AAA Lc 90.6 Preferred for body text
#40476C text on black 2.33:1 Fails Lc -11.7 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

    #F4F5F9

    oklch(97.1% 0.005 275)

  2. Step 100

    100

    #E7E9F1

    oklch(93.5% 0.011 274.9)

  3. Step 200

    200

    #D5D8E7

    oklch(88.4% 0.021 276.9)

  4. Step 300

    300

    #B9BFD9

    oklch(80.8% 0.037 275.2)

  5. Step 400

    400

    #969EC6

    oklch(70.7% 0.059 276)

  6. Step 500

    500

    #7C86B7

    oklch(63.1% 0.075 275.2)

  7. Step 600

    600

    #656FA3

    oklch(55.5% 0.082 275.1)

  8. Step 700

    700

    #545D8C

    oklch(49.1% 0.076 275)

  9. Step 800

    800 (this color)

    #40476C

    oklch(40.8% 0.063 275.1)

  10. Step 900

    900

    #3A405C

    oklch(37.8% 0.049 274.5)

  11. Step 950

    950

    #222536

    oklch(27% 0.032 276.3)

Export this scale for Tailwind in the Tailwind colors tool

#40476C 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)#3B4B6E0.013
Deuteranopia (no green cones)#38476B0.012
Tritanopia (no blue cones)#334E540.056
Achromatopsia (no color)#4949490.063

Harmonies

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

Complementary

The opposite hue (180°).

  • #40476C

    #40476C

    oklch(40.8% 0.063 275.1)

  • #554A1E

    #554A1E

    oklch(41% 0.064 95.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40476C

    #40476C

    oklch(40.8% 0.063 275.1)

  • #2B4D6A

    #2B4D6A

    oklch(40.8% 0.063 245.9)

  • #524165

    #524165

    oklch(40.8% 0.062 305.5)

Open the analogous palette in the generator

Split complementary

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

  • #40476C

    #40476C

    oklch(40.8% 0.063 275.1)

  • #614223

    #614223

    oklch(40.7% 0.062 64.5)

  • #425029

    #425029

    oklch(40.9% 0.063 125.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40476C

    #40476C

    oklch(40.8% 0.063 275.1)

  • #673D32

    #673D32

    oklch(40.8% 0.062 35.5)

  • #2C543B

    #2C543B

    oklch(40.9% 0.062 155.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40476C

    #40476C

    oklch(40.8% 0.063 275.1)

  • #673B45

    #673B45

    oklch(40.9% 0.063 5.6)

  • #554A1E

    #554A1E

    oklch(41% 0.064 95.4)

  • #16554E

    #16554E

    oklch(40.9% 0.063 184.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40476C 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.