Tailwind Violet 950

violet-950 · #2E1065 · rgb(46, 16, 101)

violet-950 is a dark vivid violet from the Tailwind CSS default palette, hex code #2E1065.

HEX#2E1065
RGBrgb(46, 16, 101)
HSLhsl(261, 73%, 23%)
CMYKcmyk(54%, 84%, 0%, 60%)
CSS variable (v4)var(--color-violet-950)
Color nameMidnight Blue (closest)

Classes

bg-violet-950
text-violet-950
border-violet-950
ring-violet-950
from-violet-950 via-violet-950 to-violet-950
bg-violet-950/50   /* 50% opacity */
White text · 15.24:1 · AAA
Black text · 1.38:1 · fails
text-violet-400 · 5.6:1 · AA

Check contrast with any color →

Tailwind violet-950: questions & answers

What is the HEX code of Tailwind violet-950?

Tailwind violet-950 is #2E1065, which is rgb(46, 16, 101) or hsl(261, 73%, 23%).

How do I use violet-950 as a background in Tailwind?

Add the class bg-violet-950 to the element. Use text-violet-950 for text and border-violet-950 for borders.

What text color works on bg-violet-950?

violet-400 (#A78BFA) is the closest shade of the same color with readable contrast (5.6:1). Plain white text gives 15.24:1.