#2F2151

Closest named color: Space Cadet (#2B2D42). oklch(29.2% 0.084 294), rgb(47, 33, 81).

Aa

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

About this color

#2F2151 is a dark, moderately saturated purple. In OKLCH its lightness is 29%, its chroma 0.084 and its hue 294°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.050 away. White text reads best on it, at 14.41:1.

Hue familyPurples
Lightnessdark (29%)
Chromamoderately saturated (0.084)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.45:1
White text14.41:1

Values

HEX#2F2151
RGBrgb(47, 33, 81)
HSLhsl(258, 42%, 22%)
OKLCHoklch(29.2% 0.084 294)

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 #2F2151 14.41:1 AAA Lc -104.0 Preferred for body text
Black text on #2F2151 1.45:1 Fails Lc 0.0 Not readable
#2F2151 text on white 14.41:1 AAA Lc 101.0 Preferred for body text
#2F2151 text on black 1.45: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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #EAE7FC

    oklch(93.7% 0.028 292.4)

  3. Step 200

    200

    #DAD3FB

    oklch(88.5% 0.055 293.3)

  4. Step 300

    300

    #C4B4FB

    oklch(80.8% 0.1 294.4)

  5. Step 400

    400

    #A78AF9

    oklch(70.7% 0.159 294)

  6. Step 500

    500

    #9468F6

    oklch(63.2% 0.204 294.1)

  7. Step 600

    600

    #8049E5

    oklch(55.6% 0.222 294.1)

  8. Step 700

    700

    #6C39C7

    oklch(49.1% 0.206 293.8)

  9. Step 800

    800

    #5830A1

    oklch(42.7% 0.172 294.1)

  10. Step 900

    900

    #482D80

    oklch(37.8% 0.133 294)

  11. Step 950

    950 (this color)

    #2F2151

    oklch(29.2% 0.084 294)

Export this scale for Tailwind in the Tailwind colors tool

#2F2151 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)#0B2A530.053
Deuteranopia (no green cones)#0F29500.050
Tritanopia (no blue cones)#262B350.068
Achromatopsia (no color)#2A2A2A0.085

Harmonies

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

Complementary

The opposite hue (180°).

  • #2F2151

    #2F2151

    oklch(29.2% 0.084 294)

  • #2C2F00

    #2C2F00

    oklch(29.2% 0.065 113.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F2151

    #2F2151

    oklch(29.2% 0.084 294)

  • #152955

    #152955

    oklch(29.2% 0.084 263.6)

  • #3F1A43

    #3F1A43

    oklch(29.1% 0.084 323.6)

Open the analogous palette in the generator

Split complementary

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

  • #2F2151

    #2F2151

    oklch(29.2% 0.084 294)

  • #3A2900

    #3A2900

    oklch(29.3% 0.06 84.3)

  • #08360C

    #08360C

    oklch(29.2% 0.084 144.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F2151

    #2F2151

    oklch(29.2% 0.084 294)

  • #471F00

    #471F00

    oklch(29.2% 0.074 53.2)

  • #00352A

    #00352A

    oklch(29.3% 0.056 174)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F2151

    #2F2151

    oklch(29.2% 0.084 294)

  • #4E1616

    #4E1616

    oklch(29.3% 0.085 24)

  • #2C2F00

    #2C2F00

    oklch(29.2% 0.065 113.5)

  • #003337

    #003337

    oklch(29.3% 0.05 203.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #2F2151 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.