Gradient Page

#240A40

#240A40 is the HEX color code for
Violet
#240A40

Violet

Contrast
Dark
Luminance
9%
Color Conversions
Formats for Violet (#240A40) in various color spaces.
#240A40
36, 10, 64
269°, 73%, 15%
44%, 84%, 0%, 75%
0.224, 0.096, 300.7
--color-violet: #240A40;

Shades & Tints

#f2e9fc
#d8bdf5
#be91ee
#a465e7
#8938e0
#701fc7
#57189a
#3e116e
#250a42
#0c0316
DarkestBaseLightest

Color Harmonies

Complementary

#240A40
#27420a

Analogous

#0a0b42
#240A40
#410a42

Triadic

#240A40
#42250a
#0a4225

Split Complementary

#240A40
#42410a
#0b420a

UI Component Examples

See how #240A40 looks when applied to real interface components.

Interactive Elements
Surface & Accent
Pro Tip!

Use lighter tints for backgrounds to maintain readability while keeping brand identity.

Status Indicator
Active
# CSS Variables
Copy-paste these variables into your global CSS to use this palette instantly.
:root {
  /* Violet Base */
  --color-primary: #240A40;
  --color-primary-rgb: 36 10 64;
  --color-primary-hsl: 269 73% 15%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #f2e9fc;
  --color-primary-100: #d8bdf5;
  --color-primary-200: #be91ee;
  --color-primary-300: #a465e7;
  --color-primary-400: #8938e0;
  --color-primary-500: #701fc7;
  --color-primary-600: #57189a;
  --color-primary-700: #3e116e;
  --color-primary-800: #250a42;
  --color-primary-900: #0c0316;
}

Want more?

We hope you enjoyed this color. Keep reading for more amazing colorful content for developers, designers and creators!
View our entire collection of UI gradientsView all our color names
#240A40 Hex Color | Violet sl | UI Color Scheme Generator