#381F51

Closest named color: Deep Violet (#490648). oklch(29.9% 0.09 304.6), rgb(56, 31, 81).

Aa

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

About this color

#381F51 is a dark, moderately saturated purple. In OKLCH its lightness is 30%, its chroma 0.090 and its hue 305°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.057 away. White text reads best on it, at 14.16:1.

Hue familyPurples
Lightnessdark (30%)
Chromamoderately saturated (0.090)
Temperaturein between
Nearest nameDeep Violet (#490648)
Black text1.48:1
White text14.16:1

Values

HEX#381F51
RGBrgb(56, 31, 81)
HSLhsl(270, 45%, 22%)
OKLCHoklch(29.9% 0.09 304.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 #381F51 14.16:1 AAA Lc -103.6 Preferred for body text
Black text on #381F51 1.48:1 Fails Lc 0.0 Not readable
#381F51 text on white 14.16:1 AAA Lc 100.6 Preferred for body text
#381F51 text on black 1.48: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

    #EEE5FB

    oklch(93.5% 0.031 304.3)

  3. Step 200

    200

    #E2D0F9

    oklch(88.5% 0.059 305.1)

  4. Step 300

    300

    #D0AFF8

    oklch(80.8% 0.107 304.8)

  5. Step 400

    400

    #B982F5

    oklch(70.8% 0.17 304.5)

  6. Step 500

    500

    #A85CF0

    oklch(63.1% 0.216 304.6)

  7. Step 600

    600

    #9439DF

    oklch(55.6% 0.236 304.6)

  8. Step 700

    700

    #7E29C1

    oklch(49% 0.219 304.6)

  9. Step 800

    800

    #67259C

    oklch(42.7% 0.181 305)

  10. Step 900

    900

    #53257C

    oklch(37.6% 0.142 304.7)

  11. Step 950

    950 (this color)

    #381F51

    oklch(29.9% 0.09 304.6)

Export this scale for Tailwind in the Tailwind colors tool

#381F51 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)#0C2A530.070
Deuteranopia (no green cones)#152B500.064
Tritanopia (no blue cones)#3429340.067
Achromatopsia (no color)#2B2B2B0.090

Harmonies

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

Complementary

The opposite hue (180°).

  • #381F51

    #381F51

    oklch(29.9% 0.09 304.6)

  • #253300

    #253300

    oklch(29.7% 0.074 124.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #381F51

    #381F51

    oklch(29.9% 0.09 304.6)

  • #21275A

    #21275A

    oklch(29.9% 0.091 274.5)

  • #47183F

    #47183F

    oklch(29.8% 0.09 334.8)

Open the analogous palette in the generator

Split complementary

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

  • #381F51

    #381F51

    oklch(29.9% 0.09 304.6)

  • #372D00

    #372D00

    oklch(29.9% 0.062 95.8)

  • #00381C

    #00381C

    oklch(29.9% 0.074 154.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #381F51

    #381F51

    oklch(29.9% 0.09 304.6)

  • #442500

    #442500

    oklch(29.9% 0.067 64.7)

  • #003631

    #003631

    oklch(29.9% 0.053 184.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #381F51

    #381F51

    oklch(29.9% 0.09 304.6)

  • #51170A

    #51170A

    oklch(29.8% 0.09 34.1)

  • #253300

    #253300

    oklch(29.7% 0.074 124.6)

  • #00343E

    #00343E

    oklch(29.9% 0.053 214.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #381F51 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.