#222887 Color Information

Hex color code: #222887

The hex color #222887 is a serene blue with RGB values of (34, 40, 135) and HSL of (236°, 60%, 33%). It is popular in mobile app design.

Try:
Color NameDark Slate Blue
HEX
#222887
RGB
34, 40, 135
HSL
236°, 60%, 33%
CMYK
75%, 70%, 0%, 47%

Shades

CSS Usage
color: #222887;
background-color: #222887;
border-color: #222887;
box-shadow: 0 0 10px #222887;
border: 2px solid #222887;
Tailwind Usage
bg-[#222887]
text-[#222887]
border-[#222887]
shadow-[0_0_10px_222887]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #222887, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #222887; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #222887; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #222887; background-color: #22288715; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #22288720; border-left: 4px solid #222887; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #222887; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #222887 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

34, 40, 135

Red: 34 / Green: 40 / Blue: 135

HSL

236°, 60%, 33%

Hue: 236° / Saturation: 60% / Lightness: 33%

CMYK

75%, 70%, 0%, 47%

Cyan: 75% / Magenta: 70% / Yellow: 0% / Key: 47%

What color is #222887?

#222887 is a blue-purple hue associated with creativity and luxury.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #222887 to RGB:

rgb(34, 40, 135)HEX to RGB Converter →

HEX to HSL

Convert #222887 to HSL:

hsl(236, 60%, 33%)RGB to HSL Converter →

HEX to CMYK

Convert #222887 to CMYK:

cmyk(75%, 70%, 0%, 47%)Color Converter →

Color Meaning and Usage

#222887 is a cool blue color with RGB values of 34, 40, 135 and HSL of 236°, 60%, 33%. This blue-purple hue evokes creativity and luxury, making it suitable for popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #222887 is #878022, creating high-contrast pairings. For softer combinations, try analogous colors like #225B87.

Use #222887 in CSS: color: #222887 or background-color: #222887. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #222887

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 1.72:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #222887?

#222887 is a cool blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #222887?

#222887 in RGB is (34, 40, 135) - 34 red, 40 green, and 135 blue.

How to use #222887 in CSS?

Use #222887 directly in your CSS properties like color or background-color.

What colors go well with #222887?

#878022 (complementary), #225B87 (analogous), and #121649 (lighter shade) work well with #222887.