#2222FF color

#2222FF is rgb(34, 34, 255) in RGB and hsl(240, 100%, 57%) in HSL. The closest CSS named color is blue (#0000ff, ΔE 2.9). Use white text on it (contrast 7.66:1).

#2222FFindigo
HEX#2222FF
Short HEX#22F
RGBrgb(34, 34, 255)
RGB percentrgb(13.3%, 13.3%, 100%)
HSLhsl(240, 100%, 57%)
HSV / HSBhsv(240, 87%, 100%)
CMYKcmyk(87%, 87%, 0%, 0%)

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

About #2222FF

#2222FF is a medium, vivid indigo with a hue angle of 240°. It belongs to the blue family and reads as a cool color. In the RGB model blue is the strongest channel at 255 (100%) and red the weakest at 34 (13%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#2222FF
Short HEX#22F
RGBrgb(34, 34, 255)
RGB percentrgb(13.3%, 13.3%, 100%)
HSLhsl(240, 100%, 57%)
HSV / HSBhsv(240, 87%, 100%)
CMYKcmyk(87%, 87%, 0%, 0%)
CIELAB (D65)lab(35.4 72.2 -102.7)
Decimal2237183
Binary00100010 00100010 11111111

HEX 22 22 FF → 34, 34, 255 (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 #2222FF

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #2222FFRatioAA normalAA largeAAA normalAAA large
White text7.66:1PassPassPassPass
Black text2.74:1FailFailFailFail
White text on #2222FF
Black text on #2222FF
#2222FF text on white
#2222FF text on black

Relative luminance is 0.0870 (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
#005fff

Deuteranopia
#0047fc

Tritanopia
#007098

Achromatopsia
#535353

With deuteranopia, the most common form of color blindness, this color shifts noticeably (ΔE 7). 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
blue#0000ff2.9
mediumblue#0000cd8.4
blueviolet#8a2be210.6
darkviolet#9400d312.3

Nearby colors

CSS

.element {
  color: #2222ff;
  background-color: rgb(34, 34, 255);
  border: 1px solid hsl(240, 100%, 57%);
  box-shadow: 0 2px 8px rgb(34 34 255 / 50%);
}
:root { --brand: #2222ff; }

Frequently asked questions

What color is #2222FF?
A medium vivid indigo in the blue family. Closest CSS name: blue.
What is #2222FF in RGB?
rgb(34, 34, 255): red 34, green 34, blue 255.
What is the complementary color of #2222FF?
#FFFF22, found by rotating the hue 180°.