#40497D

Closest named color: Twilight (#4E518B). oklch(42.3% 0.087 274.6), rgb(64, 73, 125).

Aa

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

About this color

#40497D is a dark, moderately saturated blue. In OKLCH its lightness is 42%, its chroma 0.087 and its hue 275°. Its hue sits on the cool side of the wheel. The nearest named color is Twilight (#4E518B), ΔE 0.038 away. White text reads best on it, at 8.51:1.

Hue familyBlues
Lightnessdark (42%)
Chromamoderately saturated (0.087)
Temperaturecool
Nearest nameTwilight (#4E518B)
Black text2.46:1
White text8.51:1

Values

HEX#40497D
RGBrgb(64, 73, 125)
HSLhsl(231, 32%, 37%)
OKLCHoklch(42.3% 0.087 274.6)

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 #40497D 8.51:1 AAA Lc -93.7 Preferred for body text
Black text on #40497D 2.46:1 Fails Lc 14.8 Not readable
#40497D text on white 8.51:1 AAA Lc 89.2 Fine for body text
#40497D text on black 2.46:1 Fails Lc -13.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

    #F4F5FA

    oklch(97.1% 0.007 277.2)

  2. Step 100

    100

    #E7E9F4

    oklch(93.6% 0.015 277.8)

  3. Step 200

    200

    #D3D8EC

    oklch(88.4% 0.028 274.6)

  4. Step 300

    300

    #B6BFE2

    oklch(80.9% 0.05 273.9)

  5. Step 400

    400

    #919DD4

    oklch(70.7% 0.082 274.6)

  6. Step 500

    500

    #7784C8

    oklch(63.1% 0.104 274.8)

  7. Step 600

    600

    #606DB5

    oklch(55.7% 0.113 274.4)

  8. Step 700

    700

    #4F5A9C

    oklch(49% 0.106 274.7)

  9. Step 800

    800 (this color)

    #40497D

    oklch(42.3% 0.087 274.6)

  10. Step 900

    900

    #373E65

    oklch(37.6% 0.067 275)

  11. Step 950

    950

    #20253B

    oklch(27.1% 0.042 273.5)

Export this scale for Tailwind in the Tailwind colors tool

#40497D 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)#354F7F0.021
Deuteranopia (no green cones)#304A7C0.021
Tritanopia (no blue cones)#29545D0.077
Achromatopsia (no color)#4D4D4D0.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #40497D

    #40497D

    oklch(42.3% 0.087 274.6)

  • #5D4D00

    #5D4D00

    oklch(42.4% 0.087 95.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40497D

    #40497D

    oklch(42.3% 0.087 274.6)

  • #1C527A

    #1C527A

    oklch(42.3% 0.087 244.6)

  • #594174

    #594174

    oklch(42.4% 0.086 304.7)

Open the analogous palette in the generator

Split complementary

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

  • #40497D

    #40497D

    oklch(42.3% 0.087 274.6)

  • #6E420F

    #6E420F

    oklch(42.2% 0.087 64.2)

  • #43561A

    #43561A

    oklch(42.3% 0.088 125)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40497D

    #40497D

    oklch(42.3% 0.087 274.6)

  • #763A2C

    #763A2C

    oklch(42.3% 0.088 34.3)

  • #1D5B38

    #1D5B38

    oklch(42.1% 0.086 155)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40497D

    #40497D

    oklch(42.3% 0.087 274.6)

  • #743848

    #743848

    oklch(42.3% 0.086 4.5)

  • #5D4D00

    #5D4D00

    oklch(42.4% 0.087 95.2)

  • #005B53

    #005B53

    oklch(42.4% 0.075 184.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40497D 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.