#40506C

Closest named color: YInMn Blue (#415A77). oklch(43% 0.051 261.4), rgb(64, 80, 108).

Aa

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

About this color

#40506C is a dark, muted blue. In OKLCH its lightness is 43%, its chroma 0.051 and its hue 261°. Its hue sits on the cool side of the wheel. The nearest named color is YInMn Blue (#415A77), ΔE 0.032 away. White text reads best on it, at 8.13:1.

Hue familyBlues
Lightnessdark (43%)
Chromamuted (0.051)
Temperaturecool
Nearest nameYInMn Blue (#415A77)
Black text2.58:1
White text8.13:1

Values

HEX#40506C
RGBrgb(64, 80, 108)
HSLhsl(218, 26%, 34%)
OKLCHoklch(43% 0.051 261.4)

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 #40506C 8.13:1 AAA Lc -92.8 Preferred for body text
Black text on #40506C 2.58:1 Fails Lc 15.9 Dividers and decoration only
#40506C text on white 8.13:1 AAA Lc 88.1 Fine for body text
#40506C text on black 2.58:1 Fails Lc -14.0 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

    #F4F5F8

    oklch(97% 0.004 271.4)

  2. Step 100

    100

    #E7EAF0

    oklch(93.6% 0.009 264.5)

  3. Step 200

    200

    #D3D9E4

    oklch(88.4% 0.016 262.7)

  4. Step 300

    300

    #B6C1D4

    oklch(80.8% 0.029 261.5)

  5. Step 400

    400

    #90A1BF

    oklch(70.6% 0.048 261.8)

  6. Step 500

    500

    #758AAF

    oklch(63.1% 0.061 261.6)

  7. Step 600

    600

    #5E749B

    oklch(55.7% 0.066 261.6)

  8. Step 700

    700

    #4D6184

    oklch(49.1% 0.062 261.3)

  9. Step 800

    800 (this color)

    #40506C

    oklch(43% 0.051 261.4)

  10. Step 900

    900

    #364257

    oklch(37.7% 0.039 261.5)

  11. Step 950

    950

    #202733

    oklch(27.1% 0.025 261.1)

Export this scale for Tailwind in the Tailwind colors tool

#40506C 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)#46526D0.011
Deuteranopia (no green cones)#424E6B0.006
Tritanopia (no blue cones)#32565A0.045
Achromatopsia (no color)#4F4F4F0.051

Harmonies

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

Complementary

The opposite hue (180°).

  • #40506C

    #40506C

    oklch(43% 0.051 261.4)

  • #5E4D2E

    #5E4D2E

    oklch(43% 0.051 81.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40506C

    #40506C

    oklch(43% 0.051 261.4)

  • #315567

    #315567

    oklch(43% 0.051 231.4)

  • #504B6A

    #504B6A

    oklch(43% 0.051 291.5)

Open the analogous palette in the generator

Split complementary

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

  • #40506C

    #40506C

    oklch(43% 0.051 261.4)

  • #664836

    #664836

    oklch(43% 0.05 51.9)

  • #505331

    #505331

    oklch(43% 0.052 112.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40506C

    #40506C

    oklch(43% 0.051 261.4)

  • #694443

    #694443

    oklch(42.9% 0.052 21.1)

  • #40573D

    #40573D

    oklch(43% 0.051 141.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40506C

    #40506C

    oklch(43% 0.051 261.4)

  • #664453

    #664453

    oklch(43% 0.052 351.4)

  • #5E4D2E

    #5E4D2E

    oklch(43% 0.051 81.7)

  • #30594C

    #30594C

    oklch(43% 0.052 171.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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