#220022 color

#220022 is rgb(34, 0, 34) in RGB and hsl(300, 100%, 7%) in HSL. The closest CSS named color is midnightblue (#191970, ΔE 17.9). Use white text on it (contrast 19.25:1).

#220022magenta
HEX#220022
Short HEX#202
RGBrgb(34, 0, 34)
RGB percentrgb(13.3%, 0%, 13.3%)
HSLhsl(300, 100%, 7%)
HSV / HSBhsv(300, 100%, 13%)
CMYKcmyk(0%, 100%, 0%, 87%)

Edit in the color converter → · Check contrast → · Shades →

About #220022

#220022 is a very dark, vivid magenta with a hue angle of 300°. It belongs to the black family and reads as a warm color. In the RGB model red is the strongest channel at 34 (13%) and green the weakest at 0 (0%). Colors like this are typically used for dark backgrounds, text, footers and dark-mode surfaces.

Color conversions

HEX#220022
Short HEX#202
RGBrgb(34, 0, 34)
RGB percentrgb(13.3%, 0%, 13.3%)
HSLhsl(300, 100%, 7%)
HSV / HSBhsv(300, 100%, 13%)
CMYKcmyk(0%, 100%, 0%, 87%)
CIELAB (D65)lab(4.1 20.9 -13.8)
Decimal2228258
Binary00100010 00000000 00100010

HEX 22 00 22 → 34, 0, 34 (each pair is a base-16 number: 2×16 + 2 = 34)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #220022

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #220022RatioAA normalAA largeAAA normalAAA large
White text19.25:1PassPassPassPass
Black text1.09:1FailFailFailFail
White text on #220022
Black text on #220022
#220022 text on white
#220022 text on black

Relative luminance is 0.0046 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#000b23

Deuteranopia
#071021

Tritanopia
#24040f

Achromatopsia
#0e0e0e

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 16.3). Do not rely on it alone to signal status; add an icon or text label. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
midnightblue#19197017.9
black#00000019.2
indigo#4b008219.4
navy#00008020.1

Nearby colors

CSS

.element {
  color: #220022;
  background-color: rgb(34, 0, 34);
  border: 1px solid hsl(300, 100%, 7%);
  box-shadow: 0 2px 8px rgb(34 0 34 / 50%);
}
:root { --brand: #220022; }

Frequently asked questions

What color is #220022?
A very dark vivid magenta in the black family. Closest CSS name: midnightblue.
What is #220022 in RGB?
rgb(34, 0, 34): red 34, green 0, blue 34.
What is the complementary color of #220022?
#002200, found by rotating the hue 180°.