HSL(247, 54%, 34%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(247,54%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(247, 54%, 34%) color: hsl(247, 54%, 34%)
HEX #332886 color: #332886
RGB rgb(51, 40, 134) color: rgb(51, 40, 134)
CMYK cmyk(62%, 70%, 0%, 47%)
HSV hsv(247, 70%, 53%)
HWB hwb(247 16% 47%) color: hwb(247 16% 47%)
OKLCH oklch(0.3546 0.1496 280.86) color: oklch(0.3546 0.1496 280.86)
Lab lab(23.48 33.52 -50.99) color: lab(23.48 33.52 -50.99)
LCH lch(23.48 61.02 303.32) color: lch(23.48 61.02 303.32)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 11.74:1
vs Black 1.79:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#2E2E6F — rgb(46, 46, 111)

Deuteranopia (Green-blind)

#2F306A — rgb(47, 48, 106)

Tritanopia (Blue-blind)

#325D59 — rgb(50, 93, 89)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(247, 54%, 34%);

text

color: hsl(247, 54%, 34%);

border

border: 2px solid hsl(247, 54%, 34%);

gradient light

background: linear-gradient(to right, hsl(247, 54%, 54%), hsl(247, 54%, 34%));

gradient dark

background: linear-gradient(to right, hsl(247, 54%, 34%), hsl(247, 54%, 14%))

hex

background-color: #332886;

tailwind

bg-[hsl(247,54%,34%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(247, 54%, 34%, 0.4);

css variable

--color-primary: hsl(247, 54%, 34%);

Related Colors

Use Cases for Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(247, 54%, 34%)?

HEX: #332886 | RGB: rgb(51, 40, 134) | CMYK: 62%, 70%, 0%, 47% | HSV: 247°, 70%, 53%. Copy any format from the conversion table above.

What colors go well with #332886?

The complementary color is HSL(67, 54%, 34%). For a triadic harmony, use hues 247°, 7°, and 127°. For analogous combinations, try hues 217° and 277°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(247, 54%, 34%) in CSS?

As HSL: color: hsl(247, 54%, 34%); — As HEX: color: #332886; — As RGB: color: rgb(51, 40, 134); — Tailwind CSS: bg-[hsl(247,54%,34%)] — CSS variable: --color-primary: hsl(247, 54%, 34%);