#40476B

Closest named color: Dark Grey Blue (#29465B). oklch(40.8% 0.061 274.9), rgb(64, 71, 107).

Aa

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

About this color

#40476B is a dark, muted blue. In OKLCH its lightness is 41%, its chroma 0.061 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.043 away. White text reads best on it, at 9.00:1.

Hue familyBlues
Lightnessdark (41%)
Chromamuted (0.061)
Temperaturecool
Nearest nameDark Grey Blue (#29465B)
Black text2.33:1
White text9.00:1

Values

HEX#40476B
RGBrgb(64, 71, 107)
HSLhsl(230, 25%, 34%)
OKLCHoklch(40.8% 0.061 274.9)

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 #40476B 9.00:1 AAA Lc -95.1 Preferred for body text
Black text on #40476B 2.33:1 Fails Lc 13.3 Not readable
#40476B text on white 9.00:1 AAA Lc 90.6 Preferred for body text
#40476B 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

    #E8E9F1

    oklch(93.6% 0.011 280.5)

  3. Step 200

    200

    #D5D8E7

    oklch(88.4% 0.021 276.9)

  4. Step 300

    300

    #B9BFD8

    oklch(80.8% 0.036 274.9)

  5. Step 400

    400

    #969EC5

    oklch(70.7% 0.058 275.8)

  6. Step 500

    500

    #7C86B6

    oklch(63% 0.073 275)

  7. Step 600

    600

    #6670A2

    oklch(55.7% 0.079 274.9)

  8. Step 700

    700

    #545D8B

    oklch(49.1% 0.075 274.9)

  9. Step 800

    800 (this color)

    #40476B

    oklch(40.8% 0.061 274.9)

  10. Step 900

    900

    #3A405B

    oklch(37.8% 0.047 274.3)

  11. Step 950

    950

    #222535

    oklch(26.9% 0.03 276)

Export this scale for Tailwind in the Tailwind colors tool

#40476B 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)#3B4B6D0.013
Deuteranopia (no green cones)#38476A0.012
Tritanopia (no blue cones)#334E540.054
Achromatopsia (no color)#4949490.061

Harmonies

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

Complementary

The opposite hue (180°).

  • #40476B

    #40476B

    oklch(40.8% 0.061 274.9)

  • #544920

    #544920

    oklch(40.7% 0.061 94.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40476B

    #40476B

    oklch(40.8% 0.061 274.9)

  • #2C4D69

    #2C4D69

    oklch(40.8% 0.061 245.7)

  • #514165

    #514165

    oklch(40.7% 0.062 304.2)

Open the analogous palette in the generator

Split complementary

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

  • #40476B

    #40476B

    oklch(40.8% 0.061 274.9)

  • #614324

    #614324

    oklch(40.9% 0.061 65.5)

  • #42502A

    #42502A

    oklch(40.9% 0.061 125.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40476B

    #40476B

    oklch(40.8% 0.061 274.9)

  • #673D33

    #673D33

    oklch(40.8% 0.062 34.2)

  • #2D543B

    #2D543B

    oklch(40.9% 0.062 154.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40476B

    #40476B

    oklch(40.8% 0.061 274.9)

  • #663B45

    #663B45

    oklch(40.8% 0.062 5.2)

  • #544920

    #544920

    oklch(40.7% 0.061 94.5)

  • #19544E

    #19544E

    oklch(40.7% 0.061 185.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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