Color Values
- HEX
- #2E1065
- RGB
- rgb(46, 16, 101)
- HSL
- hsl(261, 73%, 23%)
- OKLCH
- oklch(0.283 0.135 291)
- CMYK
- cmyk(54%, 84%, 0%, 60%)
- CSS Variable
- var(--color-violet-950)
- Tailwind Class
- bg-violet-950
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
15.24:1
On Black
1.38:1
Tailwind Usage — All Utilities
Background
bg-violet-950Text
text-violet-950Border
border-violet-950Ring
ring-violet-950Outline
outline-violet-950Fill
fill-violet-950Stroke
stroke-violet-950From (gradient)
from-violet-950Via (gradient)
via-violet-950To (gradient)
to-violet-950Placeholder
placeholder-violet-950Caret
caret-violet-950Accent
accent-violet-950Decoration
decoration-violet-950Shadow Color
shadow-violet-950Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'violet-950': '#2e1065',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #2E1065;
/* RGB */
background-color: rgb(46, 16, 101);
/* HSL */
background-color: hsl(261, 73%, 23%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.283 0.135 291);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-violet-950);
/* Gradient example */
background: linear-gradient(135deg, #f5f3ff 0%, #2e1065 100%);OKLCH — Modern Color Space
Lightness (L)
0.283
28% perceived brightness
Chroma (C)
0.135
Color intensity / saturation
Hue (H)
291°
Angle on perceptual hue wheel
oklch(0.283 0.135 291)OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.
Design Recommendations
Ultra-dark near-black variant
Shade 950 of the Violet palette
Recommended Uses
- ✓Maximum-contrast text on white
- ✓Rich dark card backgrounds
- ✓Dark theme page backgrounds
- ✓Tinted near-black UI surfaces
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #2E1065
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Violet 950
Nearest Tailwind equivalent — #2E1065
Frequently Asked Questions
- What is the hex code for Tailwind Violet 950?
- Tailwind Violet 950 has the hex code #2E1065. Its RGB value is rgb(46, 16, 101) and its HSL value is hsl(261, 73%, 23%).
- What Tailwind utility classes use Violet 950?
- Use bg-violet-950 for backgrounds, text-violet-950 for text color, border-violet-950 for borders, and ring-violet-950 for focus rings. In Tailwind v4 the CSS variable var(--color-violet-950) is available natively.
- Is Tailwind Violet 950 WCAG accessible?
- Tailwind Violet 950 achieves a 15.24:1 contrast ratio on white (AAA) and 1.38:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Violet 950?
- Tailwind Violet 950 in OKLCH is oklch(0.283 0.135 291) — lightness 0.283, chroma 0.135, hue 291°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Violet 950 used for?
- At shade 950, Tailwind Violet 950 is best described as "Ultra-dark near-black variant". Recommended uses: Maximum-contrast text on white, Rich dark card backgrounds, Dark theme page backgrounds.