#404A8A

Closest named color: Twilight (#4E518B). oklch(43.3% 0.106 274.5), rgb(64, 74, 138).

Aa

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

About this color

#404A8A is a dark, moderately saturated blue. In OKLCH its lightness is 43%, its chroma 0.106 and its hue 274°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.030 away. White text reads best on it, at 8.18:1.

Hue familyBlues
Lightnessdark (43%)
Chromamoderately saturated (0.106)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text2.56:1
White text8.18:1

Values

HEX#404A8A
RGBrgb(64, 74, 138)
HSLhsl(232, 37%, 40%)
OKLCHoklch(43.3% 0.106 274.5)

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 #404A8A 8.18:1 AAA Lc -92.8 Preferred for body text
Black text on #404A8A 2.56:1 Fails Lc 15.8 Dividers and decoration only
#404A8A text on white 8.18:1 AAA Lc 88.2 Fine for body text
#404A8A text on black 2.56: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

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E6E9F6

    oklch(93.6% 0.018 275.6)

  3. Step 200

    200

    #D2D8F0

    oklch(88.5% 0.034 274.5)

  4. Step 300

    300

    #B4BEE9

    oklch(80.8% 0.062 274.7)

  5. Step 400

    400

    #8E9CDE

    oklch(70.7% 0.098 274.4)

  6. Step 500

    500

    #7382D5

    oklch(63.1% 0.126 274.5)

  7. Step 600

    600

    #5C6AC2

    oklch(55.6% 0.137 274.3)

  8. Step 700

    700

    #4C58A8

    oklch(49.1% 0.128 274.3)

  9. Step 800

    800 (this color)

    #404A8A

    oklch(43.3% 0.106 274.5)

  10. Step 900

    900

    #353D6D

    oklch(37.7% 0.082 274.6)

  11. Step 950

    950

    #1F2440

    oklch(27% 0.052 274.7)

Export this scale for Tailwind in the Tailwind colors tool

#404A8A 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)#2E528C0.029
Deuteranopia (no green cones)#264C890.031
Tritanopia (no blue cones)#1F58630.094
Achromatopsia (no color)#4F4F4F0.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #404A8A

    #404A8A

    oklch(43.3% 0.106 274.5)

  • #614F00

    #614F00

    oklch(43.3% 0.089 93.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #404A8A

    #404A8A

    oklch(43.3% 0.106 274.5)

  • #055586

    #055586

    oklch(43.4% 0.105 244.4)

  • #5E407F

    #5E407F

    oklch(43.4% 0.105 304.4)

Open the analogous palette in the generator

Split complementary

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

  • #404A8A

    #404A8A

    oklch(43.3% 0.106 274.5)

  • #754300

    #754300

    oklch(43.4% 0.098 64.2)

  • #445A05

    #445A05

    oklch(43.4% 0.106 124.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #404A8A

    #404A8A

    oklch(43.3% 0.106 274.5)

  • #803726

    #803726

    oklch(43.2% 0.105 34.4)

  • #066135

    #066135

    oklch(43.4% 0.106 154.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #404A8A

    #404A8A

    oklch(43.3% 0.106 274.5)

  • #7E3449

    #7E3449

    oklch(43.3% 0.105 4.8)

  • #614F00

    #614F00

    oklch(43.3% 0.089 93.7)

  • #005E56

    #005E56

    oklch(43.3% 0.076 184.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #404A8A 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.