HSL(246, 18%, 42%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(246,18%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(246, 18%, 42%) color: hsl(246, 18%, 42%)
HEX #5C587E color: #5C587E
RGB rgb(92, 88, 126) color: rgb(92, 88, 126)
CMYK cmyk(27%, 30%, 0%, 51%)
HSV hsv(246, 30%, 49%)
HWB hwb(246 34% 51%) color: hwb(246 34% 51%)
OKLCH oklch(0.4797 0.0607 288.71) color: oklch(0.4797 0.0607 288.71)
Lab lab(39.17 10.68 -20.78) color: lab(39.17 10.68 -20.78)
LCH lch(39.17 23.36 297.2) color: lch(39.17 23.36 297.2)

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.66:1
vs Black 3.15: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)

#5A5A75 — rgb(90, 90, 117)

Deuteranopia (Green-blind)

#5B5B73 — rgb(91, 91, 115)

Tritanopia (Blue-blind)

#5C6E6C — rgb(92, 110, 108)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(246, 18%, 42%);

text

color: hsl(246, 18%, 42%);

border

border: 2px solid hsl(246, 18%, 42%);

gradient light

background: linear-gradient(to right, hsl(246, 18%, 62%), hsl(246, 18%, 42%));

gradient dark

background: linear-gradient(to right, hsl(246, 18%, 42%), hsl(246, 18%, 22%))

hex

background-color: #5C587E;

tailwind

bg-[hsl(246,18%,42%)]

box shadow

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

css variable

--color-primary: hsl(246, 18%, 42%);

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, 18%, 42%)?

HEX: #5C587E | RGB: rgb(92, 88, 126) | CMYK: 27%, 30%, 0%, 51% | HSV: 246°, 30%, 49%. Copy any format from the conversion table above.

What colors go well with #5C587E?

The complementary color is HSL(66, 18%, 42%). 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, 18%, 42%) in CSS?

As HSL: color: hsl(246, 18%, 42%); — As HEX: color: #5C587E; — As RGB: color: rgb(92, 88, 126); — Tailwind CSS: bg-[hsl(246,18%,42%)] — CSS variable: --color-primary: hsl(246, 18%, 42%);