#40246F

Closest named color: Royal Purple (#4B006E). oklch(34.1% 0.124 296.4), rgb(64, 36, 111).

Aa

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

About this color

#40246F is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.124 and its hue 296°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.055 away. White text reads best on it, at 12.35:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.124)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.69:1
White text12.35:1

Values

HEX#40246F
RGBrgb(64, 36, 111)
HSLhsl(262, 51%, 29%)
OKLCHoklch(34.1% 0.124 296.4)

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 #40246F 12.35:1 AAA Lc -101.2 Preferred for body text
Black text on #40246F 1.69:1 Fails Lc 0.0 Not readable
#40246F text on white 12.35:1 AAA Lc 97.7 Preferred for body text
#40246F text on black 1.69: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

    #F6F4FD

    oklch(97.1% 0.012 296.4)

  2. Step 100

    100

    #EBE7FA

    oklch(93.7% 0.026 295.5)

  3. Step 200

    200

    #DCD3F8

    oklch(88.6% 0.051 296.5)

  4. Step 300

    300

    #C6B5F6

    oklch(81% 0.092 296.3)

  5. Step 400

    400

    #AA8BF1

    oklch(70.7% 0.148 296.4)

  6. Step 500

    500

    #976AEC

    oklch(63.1% 0.189 296.6)

  7. Step 600

    600

    #824DDB

    oklch(55.6% 0.206 296.2)

  8. Step 700

    700

    #6F3CBE

    oklch(49.1% 0.192 296.6)

  9. Step 800

    800

    #5A339A

    oklch(42.7% 0.16 296.4)

  10. Step 900

    900 (this color)

    #40246F

    oklch(34.1% 0.124 296.4)

  11. Step 950

    950

    #2B1C48

    oklch(27.1% 0.079 296.5)

Export this scale for Tailwind in the Tailwind colors tool

#40246F 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)#0035710.083
Deuteranopia (no green cones)#00346D0.083
Tritanopia (no blue cones)#3435460.095
Achromatopsia (no color)#3535350.124

Harmonies

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

Complementary

The opposite hue (180°).

  • #40246F

    #40246F

    oklch(34.1% 0.124 296.4)

  • #363D00

    #363D00

    oklch(34.2% 0.079 116.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40246F

    #40246F

    oklch(34.1% 0.124 296.4)

  • #1A3177

    #1A3177

    oklch(34.1% 0.123 266.1)

  • #571959

    #571959

    oklch(34.1% 0.123 326.6)

Open the analogous palette in the generator

Split complementary

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

  • #40246F

    #40246F

    oklch(34.1% 0.124 296.4)

  • #483500

    #483500

    oklch(34.1% 0.07 86.3)

  • #004512

    #004512

    oklch(34% 0.103 146.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40246F

    #40246F

    oklch(34.1% 0.124 296.4)

  • #572A00

    #572A00

    oklch(33.9% 0.083 56.1)

  • #004337

    #004337

    oklch(34.2% 0.064 175.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40246F

    #40246F

    oklch(34.1% 0.124 296.4)

  • #6A0F11

    #6A0F11

    oklch(34% 0.124 26.1)

  • #363D00

    #363D00

    oklch(34.2% 0.079 116.8)

  • #004047

    #004047

    oklch(34% 0.058 207)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40246F 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.