HSL(246, 62%, 50%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(246,62%,50%)]

Color Conversions

Format Value CSS Usage
HSL hsl(246, 62%, 50%) color: hsl(246, 62%, 50%)
HEX #4030CF color: #4030CF
RGB rgb(64, 48, 207) color: rgb(64, 48, 207)
CMYK cmyk(69%, 77%, 0%, 19%)
HSV hsv(246, 77%, 81%)
HWB hwb(246 19% 19%) color: hwb(246 19% 19%)
OKLCH oklch(0.4492 0.2287 276.43) color: oklch(0.4492 0.2287 276.43)
Lab lab(33.37 53.95 -78.62) color: lab(33.37 53.95 -78.62)
LCH lch(33.37 95.35 304.46) color: lch(33.37 95.35 304.46)

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 8.26:1
vs Black 2.54: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)

#3939A9 — rgb(57, 57, 169)

Deuteranopia (Green-blind)

#3A3B9F — rgb(58, 59, 159)

Tritanopia (Blue-blind)

#3F8A83 — rgb(63, 138, 131)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(246, 62%, 50%);

text

color: hsl(246, 62%, 50%);

border

border: 2px solid hsl(246, 62%, 50%);

gradient light

background: linear-gradient(to right, hsl(246, 62%, 70%), hsl(246, 62%, 50%));

gradient dark

background: linear-gradient(to right, hsl(246, 62%, 50%), hsl(246, 62%, 30%))

hex

background-color: #4030CF;

tailwind

bg-[hsl(246,62%,50%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(246, 62%, 50%, 0.4);

css variable

--color-primary: hsl(246, 62%, 50%);

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(246, 62%, 50%)?

HEX: #4030CF | RGB: rgb(64, 48, 207) | CMYK: 69%, 77%, 0%, 19% | HSV: 246°, 77%, 81%. Copy any format from the conversion table above.

What colors go well with #4030CF?

The complementary color is HSL(66, 62%, 50%). For a triadic harmony, use hues 246°, 6°, and 126°. For analogous combinations, try hues 216° and 276°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(246, 62%, 50%) in CSS?

As HSL: color: hsl(246, 62%, 50%); — As HEX: color: #4030CF; — As RGB: color: rgb(64, 48, 207); — Tailwind CSS: bg-[hsl(246,62%,50%)] — CSS variable: --color-primary: hsl(246, 62%, 50%);