#301B47

Closest named color: Dark Purple (#35063E). oklch(27.4% 0.081 303.6), rgb(48, 27, 71).

Aa

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

About this color

#301B47 is a dark, moderately saturated purple. In OKLCH its lightness is 27%, its chroma 0.081 and its hue 304°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Purple (#35063E), ΔE 0.047 away. White text reads best on it, at 15.29:1.

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.081)
Temperaturein between
Nearest nameDark Purple (#35063E)
Black text1.37:1
White text15.29:1

Values

HEX#301B47
RGBrgb(48, 27, 71)
HSLhsl(269, 45%, 19%)
OKLCHoklch(27.4% 0.081 303.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 #301B47 15.29:1 AAA Lc -104.8 Preferred for body text
Black text on #301B47 1.37:1 Fails Lc 0.0 Not readable
#301B47 text on white 15.29:1 AAA Lc 102.0 Preferred for body text
#301B47 text on black 1.37: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

    #F7F3FD

    oklch(97% 0.014 304.1)

  2. Step 100

    100

    #EDE6F9

    oklch(93.6% 0.026 302.6)

  3. Step 200

    200

    #E0D1F6

    oklch(88.4% 0.053 303.7)

  4. Step 300

    300

    #CDB2F3

    oklch(80.9% 0.094 303.4)

  5. Step 400

    400

    #B586ED

    oklch(70.6% 0.152 303.8)

  6. Step 500

    500

    #A364E8

    oklch(63.2% 0.195 303.3)

  7. Step 600

    600

    #8F45D6

    oklch(55.6% 0.213 303.5)

  8. Step 700

    700

    #7A35B9

    oklch(49.1% 0.197 303.7)

  9. Step 800

    800

    #632E96

    oklch(42.8% 0.163 303.5)

  10. Step 900

    900

    #502B77

    oklch(37.7% 0.126 303.3)

  11. Step 950

    950 (this color)

    #301B47

    oklch(27.4% 0.081 303.6)

Export this scale for Tailwind in the Tailwind colors tool

#301B47 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)#0A25480.062
Deuteranopia (no green cones)#1225460.056
Tritanopia (no blue cones)#2C232E0.058
Achromatopsia (no color)#2525250.081

Harmonies

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

Complementary

The opposite hue (180°).

  • #301B47

    #301B47

    oklch(27.4% 0.081 303.6)

  • #212C00

    #212C00

    oklch(27.3% 0.067 123.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #301B47

    #301B47

    oklch(27.4% 0.081 303.6)

  • #1C224E

    #1C224E

    oklch(27.4% 0.08 274)

  • #3E1538

    #3E1538

    oklch(27.5% 0.081 333.6)

Open the analogous palette in the generator

Split complementary

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

  • #301B47

    #301B47

    oklch(27.4% 0.081 303.6)

  • #312600

    #312600

    oklch(27.3% 0.056 92.2)

  • #003116

    #003116

    oklch(27.5% 0.07 153.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #301B47

    #301B47

    oklch(27.4% 0.081 303.6)

  • #3C1F00

    #3C1F00

    oklch(27.3% 0.062 62.9)

  • #002F2A

    #002F2A

    oklch(27.4% 0.049 183.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #301B47

    #301B47

    oklch(27.4% 0.081 303.6)

  • #471409

    #471409

    oklch(27.4% 0.081 33.8)

  • #212C00

    #212C00

    oklch(27.3% 0.067 123.1)

  • #002D36

    #002D36

    oklch(27.4% 0.048 215)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #301B47 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.