#2F1F48

Closest named color: Space Cadet (#2B2D42). oklch(28.1% 0.074 299.6), rgb(47, 31, 72).

Aa

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

About this color

#2F1F48 is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.074 and its hue 300°. 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 14.88:1.

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

Values

HEX#2F1F48
RGBrgb(47, 31, 72)
HSLhsl(263, 40%, 20%)
OKLCHoklch(28.1% 0.074 299.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 #2F1F48 14.88:1 AAA Lc -104.4 Preferred for body text
Black text on #2F1F48 1.41:1 Fails Lc 0.0 Not readable
#2F1F48 text on white 14.88:1 AAA Lc 101.6 Preferred for body text
#2F1F48 text on black 1.41: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

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #ECE6F9

    oklch(93.5% 0.026 300.3)

  3. Step 200

    200

    #DDD3F5

    oklch(88.5% 0.047 298.9)

  4. Step 300

    300

    #C9B4F2

    oklch(80.9% 0.089 299.9)

  5. Step 400

    400

    #AE8BEB

    oklch(70.7% 0.14 299.6)

  6. Step 500

    500

    #9B6AE5

    oklch(63.1% 0.181 299.6)

  7. Step 600

    600

    #874ED2

    oklch(55.6% 0.195 299.9)

  8. Step 700

    700

    #723EB6

    oklch(49.1% 0.181 299.6)

  9. Step 800

    800

    #5D3494

    oklch(42.7% 0.151 299.6)

  10. Step 900

    900

    #4C2F76

    oklch(37.8% 0.118 299.6)

  11. Step 950

    950 (this color)

    #2F1F48

    oklch(28.1% 0.074 299.6)

Export this scale for Tailwind in the Tailwind colors tool

#2F1F48 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)#1127490.051
Deuteranopia (no green cones)#1527470.047
Tritanopia (no blue cones)#2A27300.057
Achromatopsia (no color)#2727270.075

Harmonies

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

Complementary

The opposite hue (180°).

  • #2F1F48

    #2F1F48

    oklch(28.1% 0.074 299.6)

  • #252D00

    #252D00

    oklch(27.9% 0.066 119.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F1F48

    #2F1F48

    oklch(28.1% 0.074 299.6)

  • #1B264D

    #1B264D

    oklch(28.2% 0.073 269.4)

  • #3D1A3B

    #3D1A3B

    oklch(28.3% 0.074 329.5)

Open the analogous palette in the generator

Split complementary

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

  • #2F1F48

    #2F1F48

    oklch(28.1% 0.074 299.6)

  • #342700

    #342700

    oklch(28% 0.057 89.5)

  • #033313

    #033313

    oklch(28.2% 0.075 149.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F1F48

    #2F1F48

    oklch(28.1% 0.074 299.6)

  • #402000

    #402000

    oklch(28.2% 0.066 60.5)

  • #00312A

    #00312A

    oklch(28.1% 0.051 180.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F1F48

    #2F1F48

    oklch(28.1% 0.074 299.6)

  • #471812

    #471812

    oklch(28.2% 0.074 29.7)

  • #252D00

    #252D00

    oklch(27.9% 0.066 119.7)

  • #002F36

    #002F36

    oklch(28% 0.048 210.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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