Gradient Page

#240B36

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

Violet

Contrast
Dark
Luminance
9%
Color Conversions
Formats for Violet (#240B36) in various color spaces.
#240B36
36, 11, 54
275°, 66%, 13%
33%, 80%, 0%, 79%
0.216, 0.081, 307.6
--color-violet: #240B36;

Shades & Tints

#f4eafb
#ddc0f2
#c695e9
#b06be1
#9941d8
#7f27be
#631e94
#47166a
#2a0d3f
#0e0415
DarkestBaseLightest

Color Harmonies

Complementary

#240B36
#1e370b

Analogous

#0f0b37
#240B36
#370b33

Triadic

#240B36
#37250b
#0b3725

Split Complementary

#240B36
#33370b
#0b370f

UI Component Examples

See how #240B36 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: #240B36;
  --color-primary-rgb: 36 11 54;
  --color-primary-hsl: 275 66% 13%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #f4eafb;
  --color-primary-100: #ddc0f2;
  --color-primary-200: #c695e9;
  --color-primary-300: #b06be1;
  --color-primary-400: #9941d8;
  --color-primary-500: #7f27be;
  --color-primary-600: #631e94;
  --color-primary-700: #47166a;
  --color-primary-800: #2a0d3f;
  --color-primary-900: #0e0415;
}

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
#240B36 Hex Color | Violet sl | UI Color Scheme Generator