#2D1E4F

Closest named color: Space Cadet (#2B2D42). oklch(28.2% 0.086 294.3), rgb(45, 30, 79).

Aa

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

About this color

#2D1E4F is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.086 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.056 away. White text reads best on it, at 14.89:1.

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

Values

HEX#2D1E4F
RGBrgb(45, 30, 79)
HSLhsl(258, 45%, 21%)
OKLCHoklch(28.2% 0.086 294.3)

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 #2D1E4F 14.89:1 AAA Lc -104.4 Preferred for body text
Black text on #2D1E4F 1.41:1 Fails Lc 0.0 Not readable
#2D1E4F text on white 14.89:1 AAA Lc 101.6 Preferred for body text
#2D1E4F 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

    #F6F4FE

    oklch(97.2% 0.013 295.3)

  2. Step 100

    100

    #EBE6FC

    oklch(93.5% 0.03 296.2)

  3. Step 200

    200

    #DBD3FC

    oklch(88.6% 0.056 294.2)

  4. Step 300

    300

    #C4B4FD

    oklch(80.9% 0.103 294)

  5. Step 400

    400

    #A889FB

    oklch(70.7% 0.164 294.4)

  6. Step 500

    500

    #9566F8

    oklch(63.1% 0.209 294.5)

  7. Step 600

    600

    #8147E7

    oklch(55.6% 0.227 294.4)

  8. Step 700

    700

    #6D36C9

    oklch(49% 0.212 294.3)

  9. Step 800

    800

    #592FA3

    oklch(42.8% 0.175 294.3)

  10. Step 900

    900

    #482C81

    oklch(37.7% 0.136 294)

  11. Step 950

    950 (this color)

    #2D1E4F

    oklch(28.2% 0.086 294.3)

Export this scale for Tailwind in the Tailwind colors tool

#2D1E4F 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)#0528510.057
Deuteranopia (no green cones)#0A264E0.053
Tritanopia (no blue cones)#2428330.068
Achromatopsia (no color)#2727270.087

Harmonies

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

Complementary

The opposite hue (180°).

  • #2D1E4F

    #2D1E4F

    oklch(28.2% 0.086 294.3)

  • #292D00

    #292D00

    oklch(28.3% 0.064 114.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #2D1E4F

    #2D1E4F

    oklch(28.2% 0.086 294.3)

  • #132653

    #132653

    oklch(28.2% 0.086 264.4)

  • #3D1741

    #3D1741

    oklch(28.2% 0.086 323.8)

Open the analogous palette in the generator

Split complementary

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

  • #2D1E4F

    #2D1E4F

    oklch(28.2% 0.086 294.3)

  • #372600

    #372600

    oklch(28.2% 0.058 82.9)

  • #033408

    #033408

    oklch(28.4% 0.087 144.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #2D1E4F

    #2D1E4F

    oklch(28.2% 0.086 294.3)

  • #431E00

    #431E00

    oklch(28.3% 0.07 54.8)

  • #003228

    #003228

    oklch(28.3% 0.053 174.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #2D1E4F

    #2D1E4F

    oklch(28.2% 0.086 294.3)

  • #4C1213

    #4C1213

    oklch(28.3% 0.087 23.8)

  • #292D00

    #292D00

    oklch(28.3% 0.064 114.9)

  • #003034

    #003034

    oklch(28.2% 0.048 203.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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