Oil Hex Code — #281E15
RGB, HSL, and CMYK values for Oil.
Last updated: April 6, 2026
Oil Color Values
| Format | Value |
|---|---|
| HEX | #281E15 |
| RGB | rgb(40, 30, 21) |
| HSL | hsl(28, 31%, 12%) |
| CMYK | cmyk(0%, 25%, 47%, 84%) |
About Oil
Color psychology: Richness, strength.
Oil (#281E15) is a dark shade of black with a hue angle of 28° on the color wheel, 31% saturation, and 12% lightness. It's commonly used in web design, graphic design, and branding where richness, strength are desired associations.
In color theory, Oil sits in the warm section of the spectrum. Its moderate saturation gives it a balanced, professional appearance suitable for both text and backgrounds.
When to Use Oil in Design
Web Design
Use Oil for headings, links, or accent elements against light backgrounds. Dark colors like this provide strong contrast and draw the eye to important content.
Branding & Logo
Oil conveys richness, strength — consider it for brands that want to project these qualities. Test it at small sizes (favicon, social avatar) to ensure it remains recognizable.
Print Design
Use the CMYK values (C:0% M:25% Y:47% K:84%) for accurate print reproduction in brochures, business cards, and packaging. Request a physical proof — screen colors often appear more vibrant than their printed equivalents.
UI / UX Design
Dark colors like Oil are effective for primary buttons, navigation bars, and text. Use a lighter tint (increase HSL lightness to 90%+) for hover backgrounds.
How to Use Oil in CSS
/* Using HEX */ color: #281E15; background-color: #281E15; /* Using RGB */ color: rgb(40, 30, 21); /* Using HSL — best for creating variations */ color: hsl(28, 31%, 12%); /* Transparent overlay (50% opacity) */ background-color: rgba(40, 30, 21, 0.5); /* Lighter variant for hover states */ background-color: hsl(28, 31%, 22%); /* Darker variant for active states */ background-color: hsl(28, 31%, 5%);
HSL is the most flexible format for creating color systems. By adjusting the lightness value, you can generate an entire shade scale from Oil without changing its core hue or saturation.
Colors That Go With Oil
Complementary
Analogous
Triadic
Similar Shades of Black
Frequently Asked Questions
What is the hex code for Oil?
What is Oil in RGB and when should I use RGB?
How to use Oil in CSS with different color formats?
What is the HSL value of Oil and why is HSL useful for designers?
What is the CMYK value of Oil for print design?
What colors pair well with Oil in design projects?
Is Oil (#281E15) accessible for web design and WCAG compliant?
Was this page helpful?
Written by
Tamanna Tasnim
Senior Full Stack Developer
Full-stack developer with deep expertise in data formats, APIs, and developer tooling. Writes in-depth technical comparisons and conversion guides backed by hands-on engineering experience across modern web stacks.