#40357B

Closest named color: Dark Slate Blue (#483D8B). oklch(38% 0.114 286.8), rgb(64, 53, 123).

Aa

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

About this color

#40357B is a dark, moderately saturated purple. In OKLCH its lightness is 38%, its chroma 0.114 and its hue 287°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.036 away. White text reads best on it, at 10.43:1.

Hue familyPurples
Lightnessdark (38%)
Chromamoderately saturated (0.114)
Temperaturecool
Nearest nameDark Slate Blue (#483D8B)
Black text2.01:1
White text10.43:1

Values

HEX#40357B
RGBrgb(64, 53, 123)
HSLhsl(249, 40%, 35%)
OKLCHoklch(38% 0.114 286.8)

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 #40357B 10.43:1 AAA Lc -98.0 Preferred for body text
Black text on #40357B 2.01:1 Fails Lc 10.0 Not readable
#40357B text on white 10.43:1 AAA Lc 94.0 Preferred for body text
#40357B text on black 2.01:1 Fails Lc -8.6 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

    #F5F4FD

    oklch(97% 0.012 291.3)

  2. Step 100

    100

    #E8E8FA

    oklch(93.6% 0.024 285.9)

  3. Step 200

    200

    #D6D5F8

    oklch(88.5% 0.048 286.7)

  4. Step 300

    300

    #BCB9F6

    oklch(81% 0.086 286.6)

  5. Step 400

    400

    #9B92F1

    oklch(70.7% 0.137 286.7)

  6. Step 500

    500

    #8573EC

    oklch(63% 0.176 287.1)

  7. Step 600

    600

    #7058DB

    oklch(55.5% 0.192 286.8)

  8. Step 700

    700

    #5E47BE

    oklch(49% 0.178 286.7)

  9. Step 800

    800

    #4D3C9A

    oklch(42.9% 0.147 286.8)

  10. Step 900

    900 (this color)

    #40357B

    oklch(38% 0.114 286.8)

  11. Step 950

    950

    #251F47

    oklch(26.9% 0.072 287.4)

Export this scale for Tailwind in the Tailwind colors tool

#40357B 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)#0F417D0.061
Deuteranopia (no green cones)#0E3E790.061
Tritanopia (no blue cones)#2D44520.096
Achromatopsia (no color)#4040400.115

Harmonies

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

Complementary

The opposite hue (180°).

  • #40357B

    #40357B

    oklch(38% 0.114 286.8)

  • #484500

    #484500

    oklch(38.1% 0.082 106.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40357B

    #40357B

    oklch(38% 0.114 286.8)

  • #12417E

    #12417E

    oklch(38.1% 0.115 256.9)

  • #5A2B6A

    #5A2B6A

    oklch(38.1% 0.114 316.8)

Open the analogous palette in the generator

Split complementary

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

  • #40357B

    #40357B

    oklch(38% 0.114 286.8)

  • #5A3C00

    #5A3C00

    oklch(38.1% 0.08 77.1)

  • #204F00

    #204F00

    oklch(37.9% 0.115 136.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40357B

    #40357B

    oklch(38% 0.114 286.8)

  • #6D2C00

    #6D2C00

    oklch(38% 0.105 47.1)

  • #004F39

    #004F39

    oklch(37.9% 0.078 166.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40357B

    #40357B

    oklch(38% 0.114 286.8)

  • #73212C

    #73212C

    oklch(38.1% 0.114 16.8)

  • #484500

    #484500

    oklch(38.1% 0.082 106.9)

  • #004D4E

    #004D4E

    oklch(38.1% 0.065 196.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40357B 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.