#2F0040

Closest named color: Deep Purple (#36013F). oklch(22.9% 0.113 314.4), rgb(47, 0, 64).

Aa

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

About this color

#2F0040 is a very dark, moderately saturated purple. In OKLCH its lightness is 23%, its chroma 0.113 and its hue 314°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Purple (#36013F), ΔE 0.019 away. White text reads best on it, at 17.57:1.

Hue familyPurples
Lightnessvery dark (23%)
Chromamoderately saturated (0.113)
Temperaturein between
Nearest nameDeep Purple (#36013F)
Black text1.19:1
White text17.57:1

Values

HEX#2F0040
RGBrgb(47, 0, 64)
HSLhsl(284, 100%, 13%)
OKLCHoklch(22.9% 0.113 314.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 #2F0040 17.57:1 AAA Lc -105.9 Preferred for body text
Black text on #2F0040 1.19:1 Fails Lc 0.0 Not readable
#2F0040 text on white 17.57:1 AAA Lc 103.5 Preferred for body text
#2F0040 text on black 1.19: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

    #FAF2FE

    oklch(97.1% 0.018 314.7)

  2. Step 100

    100

    #F4E3FC

    oklch(93.7% 0.038 315.1)

  3. Step 200

    200

    #ECCBFC

    oklch(88.5% 0.075 314.7)

  4. Step 300

    300

    #E0A6FD

    oklch(80.9% 0.134 314)

  5. Step 400

    400

    #D06EFB

    oklch(70.6% 0.215 314.4)

  6. Step 500

    500

    #C336F8

    oklch(63.1% 0.274 314.4)

  7. Step 600

    600

    #AB00DE

    oklch(55.6% 0.275 314.5)

  8. Step 700

    700

    #9000BC

    oklch(49% 0.242 314.4)

  9. Step 800

    800

    #77009C

    oklch(42.7% 0.211 314.4)

  10. Step 900

    900

    #620981

    oklch(37.7% 0.179 314.1)

  11. Step 950

    950 (this color)

    #2F0040

    oklch(22.9% 0.113 314.4)

Export this scale for Tailwind in the Tailwind colors tool

#2F0040 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)#0017420.096
Deuteranopia (no green cones)#001A3F0.098
Tritanopia (no blue cones)#2D10220.071
Achromatopsia (no color)#1919190.114

Harmonies

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

Complementary

The opposite hue (180°).

  • #2F0040

    #2F0040

    oklch(22.9% 0.113 314.4)

  • #0E2300

    #0E2300

    oklch(22.9% 0.066 134.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2F0040

    #2F0040

    oklch(22.9% 0.113 314.4)

  • #1B0A4E

    #1B0A4E

    oklch(22.8% 0.114 284.4)

  • #390027

    #390027

    oklch(23% 0.098 345)

Open the analogous palette in the generator

Split complementary

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

  • #2F0040

    #2F0040

    oklch(22.9% 0.113 314.4)

  • #201E00

    #201E00

    oklch(23% 0.049 106.1)

  • #002417

    #002417

    oklch(23.1% 0.049 164.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2F0040

    #2F0040

    oklch(22.9% 0.113 314.4)

  • #2A1900

    #2A1900

    oklch(23% 0.049 75)

  • #002222

    #002222

    oklch(22.8% 0.039 194.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2F0040

    #2F0040

    oklch(22.9% 0.113 314.4)

  • #350F00

    #350F00

    oklch(22.9% 0.067 43.6)

  • #0E2300

    #0E2300

    oklch(22.9% 0.066 134.4)

  • #00212C

    #00212C

    oklch(23% 0.043 224.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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