HEX Color Conversion

Hex Color Code #331F32 — RGB & HSL Conversions

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

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

What are the RGB and HSL conversion values for #331F32?

In the digital sRGB color space, the hex value #331F32 is converted to RGB values of Red: 51, Green: 31, and Blue: 50. When analyzed under the HSL model, its coordinates correspond to hue angle 303°, 24% saturation, and 16% lightness. This makes it visually a dark, rich color with a soft, understated pastel shade.

CMYK print code settings for #331F32

When converting #331F32 for CMYK printing, the color separation consists of 0% Cyan, 39% Magenta, 2% Yellow, and 80% key/black. These neutral color boundaries serve as solid structural backgrounds, layouts, and typography grids.

Red Channel 51
Green Channel 31
Blue Channel 50
Luminance 0.019

HEX #331F32 Color Space Conversions

Click to copy format
HEX Color Code #331F32
RGB (Red Green Blue) rgb(51, 31, 50)
HSL (Hue Sat Light) hsl(303°, 24%, 16%)
CMYK (Commercial Print) cmyk(0%, 39%, 2%, 80%)
HSV / HSB Values hsv(303°, 39%, 20%)
Decimal Color Code 3350322
CSS Custom Variable --color-hex: #331F32;
Tailwind CSS Utility bg-[#331F32]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #331F32

Small body copy preview

Black Text on Background

Black text readability test with #331F32

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 #331F32 */
--color-hex: #331F32;
--color-rgb: rgb(51, 31, 50);
--color-hsl: hsl(303deg, 24%, 16%);

Adjacent HEX Color Codes

Copied!