HEX Color Conversion

Hex Color Code #221522 — RGB & HSL Conversions

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

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

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

In the digital sRGB color space, the hex value #221522 is converted to RGB values of Red: 34, Green: 21, and Blue: 34. When analyzed under the HSL model, its coordinates correspond to hue angle 300°, 24% saturation, and 11% lightness. This makes it visually an extremely deep, dark shade with a soft, understated pastel shade.

CMYK print code settings for #221522

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

Red Channel 34
Green Channel 21
Blue Channel 34
Luminance 0.010

HEX #221522 Color Space Conversions

Click to copy format
HEX Color Code #221522
RGB (Red Green Blue) rgb(34, 21, 34)
HSL (Hue Sat Light) hsl(300°, 24%, 11%)
CMYK (Commercial Print) cmyk(0%, 38%, 0%, 87%)
HSV / HSB Values hsv(300°, 38%, 13%)
Decimal Color Code 2233634
CSS Custom Variable --color-hex: #221522;
Tailwind CSS Utility bg-[#221522]

Contrast & Accessibility (WCAG 2.1) Check

White Text on Background

White text readability test with #221522

Small body copy preview

Black Text on Background

Black text readability test with #221522

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 #221522 */
--color-hex: #221522;
--color-rgb: rgb(34, 21, 34);
--color-hsl: hsl(300deg, 24%, 11%);

Adjacent HEX Color Codes

Copied!