Gradient Page

#2F270E

#2F270E is the HEX color code for
Onion
#2F270E

Onion

Contrast
Dark
Luminance
15%
Color Conversions
Formats for Onion (#2F270E) in various color spaces.
#2F270E
47, 39, 14
45°, 54%, 12%
0%, 17%, 70%, 82%
0.275, 0.041, 91.8
--color-onion: #2F270E;

Shades & Tints

#f9f6eb
#ede3c4
#e2d09d
#d6be76
#caab4e
#b19235
#897129
#62511d
#3b3112
#141006
DarkestBaseLightest

Color Harmonies

Complementary

#2F270E
#0e162f

Analogous

#2f160e
#2F270E
#272f0e

Triadic

#2F270E
#0e2f27
#270e2f

Split Complementary

#2F270E
#0e272f
#160e2f

UI Component Examples

See how #2F270E 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 {
  /* Onion Base */
  --color-primary: #2F270E;
  --color-primary-rgb: 47 39 14;
  --color-primary-hsl: 45 54% 12%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #f9f6eb;
  --color-primary-100: #ede3c4;
  --color-primary-200: #e2d09d;
  --color-primary-300: #d6be76;
  --color-primary-400: #caab4e;
  --color-primary-500: #b19235;
  --color-primary-600: #897129;
  --color-primary-700: #62511d;
  --color-primary-800: #3b3112;
  --color-primary-900: #141006;
}

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
#2F270E Hex Color | Onion sl | UI Color Scheme Generator