#40274B

Closest named color: Space Cadet (#2B2D42). oklch(32% 0.069 314.9), rgb(64, 39, 75).

Aa

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

About this color

#40274B is a dark, muted purple. In OKLCH its lightness is 32%, its chroma 0.069 and its hue 315°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.047 away. White text reads best on it, at 13.04:1.

Hue familyPurples
Lightnessdark (32%)
Chromamuted (0.069)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.60:1
White text13.04:1

Values

HEX#40274B
RGBrgb(64, 39, 75)
HSLhsl(282, 32%, 22%)
OKLCHoklch(32% 0.069 314.9)

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 #40274B 13.04:1 AAA Lc -102.4 Preferred for body text
Black text on #40274B 1.60:1 Fails Lc 0.0 Not readable
#40274B text on white 13.04:1 AAA Lc 99.2 Preferred for body text
#40274B text on black 1.60: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 950.

  1. Step 50

    50

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #F0E5F5

    oklch(93.5% 0.024 315.5)

  3. Step 200

    200

    #E5D1EE

    oklch(88.6% 0.045 315.5)

  4. Step 300

    300

    #D5B1E6

    oklch(80.9% 0.083 314.8)

  5. Step 400

    400

    #BF86D9

    oklch(70.7% 0.132 314.7)

  6. Step 500

    500

    #AF65CE

    oklch(63.1% 0.168 315.1)

  7. Step 600

    600

    #9A49BB

    oklch(55.6% 0.182 314.9)

  8. Step 700

    700

    #8339A1

    oklch(49% 0.17 314.8)

  9. Step 800

    800

    #6B3083

    oklch(42.7% 0.142 314.9)

  10. Step 900

    900

    #572C69

    oklch(37.8% 0.11 314.9)

  11. Step 950

    950 (this color)

    #40274B

    oklch(32% 0.069 314.9)

Export this scale for Tailwind in the Tailwind colors tool

#40274B 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)#202F4C0.058
Deuteranopia (no green cones)#27324A0.053
Tritanopia (no blue cones)#3F2C350.047
Achromatopsia (no color)#3131310.070

Harmonies

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

Complementary

The opposite hue (180°).

  • #40274B

    #40274B

    oklch(32% 0.069 314.9)

  • #233A14

    #233A14

    oklch(31.9% 0.068 134.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40274B

    #40274B

    oklch(32% 0.069 314.9)

  • #302D55

    #302D55

    oklch(32.1% 0.07 285.2)

  • #4B233B

    #4B233B

    oklch(32% 0.069 344.8)

Open the analogous palette in the generator

Split complementary

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

  • #40274B

    #40274B

    oklch(32% 0.069 314.9)

  • #383400

    #383400

    oklch(31.9% 0.068 104.9)

  • #003D2A

    #003D2A

    oklch(31.9% 0.067 165.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40274B

    #40274B

    oklch(32% 0.069 314.9)

  • #472D00

    #472D00

    oklch(32.1% 0.068 74.7)

  • #003B3B

    #003B3B

    oklch(31.9% 0.054 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40274B

    #40274B

    oklch(32% 0.069 314.9)

  • #4F2612

    #4F2612

    oklch(32% 0.069 45.2)

  • #233A14

    #233A14

    oklch(31.9% 0.068 134.7)

  • #00394A

    #00394A

    oklch(32% 0.061 224.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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