#40285F

Closest named color: Prussian Blue (#1D3557). oklch(33.5% 0.095 301.6), rgb(64, 40, 95).

Aa

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

About this color

#40285F is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.095 and its hue 302°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Prussian Blue (#1D3557), ΔE 0.067 away. White text reads best on it, at 12.44:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.095)
Temperaturein between
Nearest namePrussian Blue (#1D3557)
Black text1.68:1
White text12.44:1

Values

HEX#40285F
RGBrgb(64, 40, 95)
HSLhsl(266, 41%, 26%)
OKLCHoklch(33.5% 0.095 301.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 #40285F 12.44:1 AAA Lc -101.5 Preferred for body text
Black text on #40285F 1.68:1 Fails Lc 0.0 Not readable
#40285F text on white 12.44:1 AAA Lc 98.1 Preferred for body text
#40285F text on black 1.68: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

    #F6F4FB

    oklch(97.1% 0.009 299.2)

  2. Step 100

    100

    #ECE7F6

    oklch(93.6% 0.021 301.1)

  3. Step 200

    200

    #DDD4F0

    oklch(88.6% 0.039 300.2)

  4. Step 300

    300

    #C9B6E8

    oklch(80.9% 0.072 302.2)

  5. Step 400

    400

    #AD8FDC

    oklch(70.6% 0.114 301.5)

  6. Step 500

    500

    #9A71D3

    oklch(63.1% 0.147 301.6)

  7. Step 600

    600

    #8558C0

    oklch(55.7% 0.159 301.4)

  8. Step 700

    700

    #7147A5

    oklch(49.1% 0.147 301.8)

  9. Step 800

    800

    #5C3B86

    oklch(42.8% 0.122 301.8)

  10. Step 900

    900 (this color)

    #40285F

    oklch(33.5% 0.095 301.6)

  11. Step 950

    950

    #2C1E3F

    oklch(26.9% 0.062 302)

Export this scale for Tailwind in the Tailwind colors tool

#40285F 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)#1334610.070
Deuteranopia (no green cones)#1B345E0.064
Tritanopia (no blue cones)#3A333F0.073
Achromatopsia (no color)#3434340.096

Harmonies

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

Complementary

The opposite hue (180°).

  • #40285F

    #40285F

    oklch(33.5% 0.095 301.6)

  • #303D00

    #303D00

    oklch(33.6% 0.082 122.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40285F

    #40285F

    oklch(33.5% 0.095 301.6)

  • #263167

    #263167

    oklch(33.5% 0.095 271.7)

  • #51214C

    #51214C

    oklch(33.5% 0.094 331.6)

Open the analogous palette in the generator

Split complementary

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

  • #40285F

    #40285F

    oklch(33.5% 0.095 301.6)

  • #443500

    #443500

    oklch(33.6% 0.069 91.2)

  • #00431E

    #00431E

    oklch(33.5% 0.088 151.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40285F

    #40285F

    oklch(33.5% 0.095 301.6)

  • #522C00

    #522C00

    oklch(33.5% 0.077 62.3)

  • #004139

    #004139

    oklch(33.7% 0.061 181.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40285F

    #40285F

    oklch(33.5% 0.095 301.6)

  • #5E1F14

    #5E1F14

    oklch(33.5% 0.095 32.1)

  • #303D00

    #303D00

    oklch(33.6% 0.082 122.1)

  • #003E48

    #003E48

    oklch(33.4% 0.058 212.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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