#331CCA Color Information

Hex color code: #331CCA

The hex color #331CCA is a bold blue with RGB values of (51, 28, 202) and HSL of (248°, 76%, 45%). It is frequently seen in web interfaces.

Try:
Color NameDark Slate Blue
HEX
#331CCA
RGB
51, 28, 202
HSL
248°, 76%, 45%
CMYK
75%, 86%, 0%, 21%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #331CCA; 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 #331CCA; background-color: #331CCA15; }

Alert / Toast

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

Link / Accent

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

a { color: #331CCA; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #331CCA in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

51, 28, 202

Red: 51 / Green: 28 / Blue: 202

HSL

248°, 76%, 45%

Hue: 248° / Saturation: 76% / Lightness: 45%

CMYK

75%, 86%, 0%, 21%

Cyan: 75% / Magenta: 86% / Yellow: 0% / Key: 21%

What color is #331CCA?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #331CCA to RGB:

rgb(51, 28, 202)HEX to RGB Converter →

HEX to HSL

Convert #331CCA to HSL:

hsl(248, 76%, 45%)RGB to HSL Converter →

HEX to CMYK

Convert #331CCA to CMYK:

cmyk(75%, 86%, 0%, 21%)Color Converter →

Color Meaning and Usage

A vivid blue tone, #331CCA has RGB (51, 28, 202) and HSL (248°, 76%, 45%). Known for evoking creativity and luxury, this blue-purple hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #331CCA is #B3CA1C, creating high-contrast pairings. For softer combinations, try analogous colors like #1C5BCA.

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

Contrast with #331CCA

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #331CCA?

#331CCA is a vivid blue color - a blue-purple hue that evokes creativity and luxury.

What is the RGB value of #331CCA?

#331CCA in RGB is (51, 28, 202) - 51 red, 28 green, and 202 blue.

How to use #331CCA in CSS?

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

What colors go well with #331CCA?

#B3CA1C (complementary), #1C5BCA (analogous), and #221287 (lighter shade) work well with #331CCA.