HSL(254, 72%, 56%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(254,72%,56%)]

Color Conversions

Format Value CSS Usage
HSL hsl(254, 72%, 56%) color: hsl(254, 72%, 56%)
HEX #643EE0 color: #643EE0
RGB rgb(100, 62, 224) color: rgb(100, 62, 224)
CMYK cmyk(55%, 72%, 0%, 12%)
HSV hsv(254, 72%, 88%)
HWB hwb(254 25% 12%) color: hwb(254 25% 12%)
OKLCH oklch(0.5116 0.2291 285.79) color: oklch(0.5116 0.2291 285.79)
Lab lab(40.47 56.11 -76.61) color: lab(40.47 56.11 -76.61)
LCH lch(40.47 94.96 306.22) color: lch(40.47 94.96 306.22)

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 6.35:1
vs Black 3.31:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#5453B9 — rgb(84, 83, 185)

Deuteranopia (Green-blind)

#5659AF — rgb(86, 89, 175)

Tritanopia (Blue-blind)

#629A93 — rgb(98, 154, 147)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(254, 72%, 56%);

text

color: hsl(254, 72%, 56%);

border

border: 2px solid hsl(254, 72%, 56%);

gradient light

background: linear-gradient(to right, hsl(254, 72%, 76%), hsl(254, 72%, 56%));

gradient dark

background: linear-gradient(to right, hsl(254, 72%, 56%), hsl(254, 72%, 36%))

hex

background-color: #643EE0;

tailwind

bg-[hsl(254,72%,56%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(254, 72%, 56%, 0.4);

css variable

--color-primary: hsl(254, 72%, 56%);

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(254, 72%, 56%)?

HEX: #643EE0 | RGB: rgb(100, 62, 224) | CMYK: 55%, 72%, 0%, 12% | HSV: 254°, 72%, 88%. Copy any format from the conversion table above.

What colors go well with #643EE0?

The complementary color is HSL(74, 72%, 56%). For a triadic harmony, use hues 254°, 14°, and 134°. For analogous combinations, try hues 224° and 284°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(254, 72%, 56%) in CSS?

As HSL: color: hsl(254, 72%, 56%); — As HEX: color: #643EE0; — As RGB: color: rgb(100, 62, 224); — Tailwind CSS: bg-[hsl(254,72%,56%)] — CSS variable: --color-primary: hsl(254, 72%, 56%);