#404161

Closest named color: Dark Grey Blue (#29465B). oklch(38.9% 0.054 282.2), rgb(64, 65, 97).

Aa

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

About this color

#404161 is a dark, muted purple. In OKLCH its lightness is 39%, its chroma 0.054 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Grey Blue (#29465B), ΔE 0.037 away. White text reads best on it, at 9.78:1.

Hue familyPurples
Lightnessdark (39%)
Chromamuted (0.054)
Temperaturecool
Nearest nameDark Grey Blue (#29465B)
Black text2.14:1
White text9.78:1

Values

HEX#404161
RGBrgb(64, 65, 97)
HSLhsl(238, 20%, 32%)
OKLCHoklch(38.9% 0.054 282.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 #404161 9.78:1 AAA Lc -96.8 Preferred for body text
Black text on #404161 2.14:1 Fails Lc 11.3 Not readable
#404161 text on white 9.78:1 AAA Lc 92.7 Preferred for body text
#404161 text on black 2.14:1 Fails Lc -9.8 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 900.

  1. Step 50

    50

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #E8E9F2

    oklch(93.6% 0.012 281.1)

  3. Step 200

    200

    #D6D8E8

    oklch(88.5% 0.022 280.3)

  4. Step 300

    300

    #BCBEDB

    oklch(80.9% 0.041 282.3)

  5. Step 400

    400

    #9A9CC9

    oklch(70.7% 0.066 282.6)

  6. Step 500

    500

    #8183BB

    oklch(63% 0.084 282.1)

  7. Step 600

    600

    #6B6CA7

    oklch(55.5% 0.091 282.3)

  8. Step 700

    700

    #595A8F

    oklch(49% 0.084 282)

  9. Step 800

    800

    #494A74

    oklch(42.7% 0.069 282)

  10. Step 900

    900 (this color)

    #404161

    oklch(38.9% 0.054 282.2)

  11. Step 950

    950

    #242437

    oklch(26.9% 0.035 283.8)

Export this scale for Tailwind in the Tailwind colors tool

#404161 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)#3845620.016
Deuteranopia (no green cones)#3643600.016
Tritanopia (no blue cones)#38474C0.048
Achromatopsia (no color)#4444440.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #404161

    #404161

    oklch(38.9% 0.054 282.2)

  • #4A4622

    #4A4622

    oklch(38.9% 0.054 102.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404161

    #404161

    oklch(38.9% 0.054 282.2)

  • #2F4661

    #2F4661

    oklch(38.8% 0.054 253.1)

  • #4E3C5A

    #4E3C5A

    oklch(38.8% 0.055 311.3)

Open the analogous palette in the generator

Split complementary

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

  • #404161

    #404161

    oklch(38.9% 0.054 282.2)

  • #574022

    #574022

    oklch(39% 0.055 72.4)

  • #3A4B2C

    #3A4B2C

    oklch(38.9% 0.054 131.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404161

    #404161

    oklch(38.9% 0.054 282.2)

  • #5D3B2D

    #5D3B2D

    oklch(38.9% 0.054 43.1)

  • #274E3C

    #274E3C

    oklch(38.9% 0.055 162.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404161

    #404161

    oklch(38.9% 0.054 282.2)

  • #5E383D

    #5E383D

    oklch(38.8% 0.055 11.4)

  • #4A4622

    #4A4622

    oklch(38.9% 0.054 102.9)

  • #1A4E4C

    #1A4E4C

    oklch(38.9% 0.055 191.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #404161 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.