HEX Color Conversion

Hex Color Code #B8040B — RGB & HSL Conversions

How to use the #B8040B color code in HTML & CSS?

To apply the hex color #B8040B in web design, set the color property inside your CSS stylesheet. For example, adding background-color: #B8040B; will paint elements in this warm undertone shade. In modern CSS structures, you can configure it as a custom variable --color-hex: #B8040B; or utilize it directly in Tailwind CSS via arbitrary utility values like bg-[#B8040B].

What are the RGB and HSL conversion values for #B8040B?

In the digital sRGB color space, the hex value #B8040B is converted to RGB values of Red: 184, Green: 4, and Blue: 11. When analyzed under the HSL model, its coordinates correspond to hue angle 358°, 96% saturation, and 37% lightness. This makes it visually a dark, rich color with a highly vivid, intense, and brilliant shade.

CMYK print code settings for #B8040B

When converting #B8040B for CMYK printing, the color separation consists of 0% Cyan, 98% Magenta, 94% Yellow, and 28% key/black. Given its red-channel dominance, this color is a powerful visual stimulator often deployed in banners, call-to-actions, and warning components.

Red Channel 184
Green Channel 4
Blue Channel 11
Luminance 0.103

HEX #B8040B Color Space Conversions

Click to copy format
HEX Color Code #B8040B
RGB (Red Green Blue) rgb(184, 4, 11)
HSL (Hue Sat Light) hsl(358°, 96%, 37%)
CMYK (Commercial Print) cmyk(0%, 98%, 94%, 28%)
HSV / HSB Values hsv(358°, 98%, 72%)
Decimal Color Code 12059659
CSS Custom Variable --color-hex: #B8040B;
Tailwind CSS Utility bg-[#B8040B]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #B8040B

Small body copy preview

Black Text on Background

Black text readability test with #B8040B

Small body copy preview

Complementary & Analogous Harmonies

Perfect matching color schemes for your designs

Shades & Tints Generator Matrix

Copy shade hex values instantly

Darker Shades (Adding Black)

Lighter Tints (Adding White)

{ } CSS Custom Properties (Variables)

Copy CSS Styles
/* CSS Custom Properties for color #B8040B */
--color-hex: #B8040B;
--color-rgb: rgb(184, 4, 11);
--color-hsl: hsl(358deg, 96%, 37%);

Adjacent HEX Color Codes

Copied!