#404174

Closest named color: Dark Slate Blue (#483D8B). oklch(40% 0.085 281), rgb(64, 65, 116).

Aa

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

About this color

#404174 is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.085 and its hue 281°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.044 away. White text reads best on it, at 9.43:1.

Hue familyPurples
Lightnessdark (40%)
Chromamoderately saturated (0.085)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text2.22:1
White text9.43:1

Values

HEX#404174
RGBrgb(64, 65, 116)
HSLhsl(239, 29%, 35%)
OKLCHoklch(40% 0.085 281)

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 #404174 9.43:1 AAA Lc -96.0 Preferred for body text
Black text on #404174 2.22:1 Fails Lc 12.2 Not readable
#404174 text on white 9.43:1 AAA Lc 91.7 Preferred for body text
#404174 text on black 2.22:1 Fails Lc -10.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 900.

  1. Step 50

    50

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E7E9F6

    oklch(93.6% 0.018 279.1)

  3. Step 200

    200

    #D4D7F1

    oklch(88.5% 0.036 280.4)

  4. Step 300

    300

    #B9BDEA

    oklch(81% 0.063 280.9)

  5. Step 400

    400

    #9599DF

    oklch(70.7% 0.102 280.9)

  6. Step 500

    500

    #7C7ED6

    oklch(63% 0.131 281)

  7. Step 600

    600

    #6666C3

    oklch(55.6% 0.141 280.8)

  8. Step 700

    700

    #5554A9

    oklch(49.1% 0.133 280.9)

  9. Step 800

    800

    #464589

    oklch(42.7% 0.11 281.3)

  10. Step 900

    900 (this color)

    #404174

    oklch(40% 0.085 281)

  11. Step 950

    950

    #222340

    oklch(27.1% 0.053 280.7)

Export this scale for Tailwind in the Tailwind colors tool

#404174 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)#2E48760.030
Deuteranopia (no green cones)#2B44730.030
Tritanopia (no blue cones)#304B550.072
Achromatopsia (no color)#4646460.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #404174

    #404174

    oklch(40% 0.085 281)

  • #524800

    #524800

    oklch(39.9% 0.083 100.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404174

    #404174

    oklch(40% 0.085 281)

  • #204A74

    #204A74

    oklch(40.1% 0.085 250.8)

  • #563969

    #563969

    oklch(39.9% 0.085 310.9)

Open the analogous palette in the generator

Split complementary

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

  • #404174

    #404174

    oklch(40% 0.085 281)

  • #643E02

    #643E02

    oklch(39.9% 0.085 70.3)

  • #37511B

    #37511B

    oklch(40.1% 0.086 131.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404174

    #404174

    oklch(40% 0.085 281)

  • #6D3621

    #6D3621

    oklch(40% 0.085 41.1)

  • #095538

    #095538

    oklch(39.9% 0.085 161)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404174

    #404174

    oklch(40% 0.085 281)

  • #6D323C

    #6D323C

    oklch(39.9% 0.084 11)

  • #524800

    #524800

    oklch(39.9% 0.083 100.2)

  • #005350

    #005350

    oklch(39.9% 0.069 190.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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