#40306A

Closest named color: Dark Slate Blue (#483D8B). oklch(35.8% 0.097 293.6), rgb(64, 48, 106).

Aa

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

About this color

#40306A is a dark, moderately saturated purple. In OKLCH its lightness is 36%, its chroma 0.097 and its hue 294°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Slate Blue (#483D8B), ΔE 0.064 away. White text reads best on it, at 11.35:1.

Hue familyPurples
Lightnessdark (36%)
Chromamoderately saturated (0.097)
Temperaturein between
Nearest nameDark Slate Blue (#483D8B)
Black text1.84:1
White text11.35:1

Values

HEX#40306A
RGBrgb(64, 48, 106)
HSLhsl(257, 38%, 30%)
OKLCHoklch(35.8% 0.097 293.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 #40306A 11.35:1 AAA Lc -99.8 Preferred for body text
Black text on #40306A 1.84:1 Fails Lc 7.9 Not readable
#40306A text on white 11.35:1 AAA Lc 96.0 Preferred for body text
#40306A text on black 1.84:1 Fails Lc 0.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 900.

  1. Step 50

    50

    #F5F4FC

    oklch(97% 0.011 292)

  2. Step 100

    100

    #EAE7F7

    oklch(93.5% 0.022 294.6)

  3. Step 200

    200

    #DAD5F2

    oklch(88.6% 0.04 293.5)

  4. Step 300

    300

    #C2B8EC

    oklch(80.8% 0.073 293.5)

  5. Step 400

    400

    #A492E3

    oklch(70.7% 0.117 293.4)

  6. Step 500

    500

    #8F75DA

    oklch(63.1% 0.149 293.5)

  7. Step 600

    600

    #7A5BC8

    oklch(55.6% 0.163 293.5)

  8. Step 700

    700

    #674AAD

    oklch(49.1% 0.152 293.5)

  9. Step 800

    800

    #543D8C

    oklch(42.7% 0.126 293.8)

  10. Step 900

    900 (this color)

    #40306A

    oklch(35.8% 0.097 293.6)

  11. Step 950

    950

    #282041

    oklch(27% 0.06 293.1)

Export this scale for Tailwind in the Tailwind colors tool

#40306A 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)#183B6C0.060
Deuteranopia (no green cones)#1C39690.056
Tritanopia (no blue cones)#363C480.079
Achromatopsia (no color)#3A3A3A0.098

Harmonies

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

Complementary

The opposite hue (180°).

  • #40306A

    #40306A

    oklch(35.8% 0.097 293.6)

  • #3D4100

    #3D4100

    oklch(35.9% 0.081 113.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40306A

    #40306A

    oklch(35.8% 0.097 293.6)

  • #213A6F

    #213A6F

    oklch(35.9% 0.097 263.3)

  • #542859

    #542859

    oklch(35.7% 0.097 323.4)

Open the analogous palette in the generator

Split complementary

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

  • #40306A

    #40306A

    oklch(35.8% 0.097 293.6)

  • #4F3800

    #4F3800

    oklch(35.7% 0.073 82.8)

  • #154916

    #154916

    oklch(35.8% 0.098 143.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40306A

    #40306A

    oklch(35.8% 0.097 293.6)

  • #602C00

    #602C00

    oklch(35.8% 0.091 52.9)

  • #004839

    #004839

    oklch(35.8% 0.069 172.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40306A

    #40306A

    oklch(35.8% 0.097 293.6)

  • #662323

    #662323

    oklch(35.8% 0.097 23.4)

  • #3D4100

    #3D4100

    oklch(35.9% 0.081 113.7)

  • #00464B

    #00464B

    oklch(35.9% 0.061 202.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40306A 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.