#40367D

Closest named color: Dark Slate Blue (#483D8B). oklch(38.3% 0.116 286), rgb(64, 54, 125).

Aa

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

About this color

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

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

Values

HEX#40367D
RGBrgb(64, 54, 125)
HSLhsl(248, 40%, 35%)
OKLCHoklch(38.3% 0.116 286)

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 #40367D 10.28:1 AAA Lc -97.7 Preferred for body text
Black text on #40367D 2.04:1 Fails Lc 10.3 Not readable
#40367D text on white 10.28:1 AAA Lc 93.6 Preferred for body text
#40367D text on black 2.04:1 Fails Lc -8.9 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

    #F4F4FD

    oklch(97% 0.012 286.2)

  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

    #BBB9F7

    oklch(80.9% 0.087 285.8)

  5. Step 400

    400

    #9A92F3

    oklch(70.7% 0.139 286)

  6. Step 500

    500

    #8374EE

    oklch(63.1% 0.177 285.8)

  7. Step 600

    600

    #6F58DC

    oklch(55.5% 0.193 286.3)

  8. Step 700

    700

    #5D47BF

    oklch(49% 0.179 286.1)

  9. Step 800

    800

    #4C3C9B

    oklch(42.8% 0.148 286)

  10. Step 900

    900 (this color)

    #40367D

    oklch(38.3% 0.116 286)

  11. Step 950

    950

    #241F48

    oklch(26.9% 0.074 285.9)

Export this scale for Tailwind in the Tailwind colors tool

#40367D 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)#0F427F0.060
Deuteranopia (no green cones)#0C3E7B0.061
Tritanopia (no blue cones)#2C46540.097
Achromatopsia (no color)#4141410.116

Harmonies

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

Complementary

The opposite hue (180°).

  • #40367D

    #40367D

    oklch(38.3% 0.116 286)

  • #494500

    #494500

    oklch(38.2% 0.081 105.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40367D

    #40367D

    oklch(38.3% 0.116 286)

  • #0F427F

    #0F427F

    oklch(38.3% 0.116 255.9)

  • #5B2B6C

    #5B2B6C

    oklch(38.3% 0.117 316.4)

Open the analogous palette in the generator

Split complementary

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

  • #40367D

    #40367D

    oklch(38.3% 0.116 286)

  • #5B3C00

    #5B3C00

    oklch(38.2% 0.08 76.2)

  • #235000

    #235000

    oklch(38.4% 0.114 136.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40367D

    #40367D

    oklch(38.3% 0.116 286)

  • #6F2C00

    #6F2C00

    oklch(38.3% 0.107 46.4)

  • #005039

    #005039

    oklch(38.2% 0.079 165.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40367D

    #40367D

    oklch(38.3% 0.116 286)

  • #74212D

    #74212D

    oklch(38.3% 0.116 16.3)

  • #494500

    #494500

    oklch(38.2% 0.081 105.9)

  • #004E4F

    #004E4F

    oklch(38.4% 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 #40367D, closest first.

Similar named colors

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

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