HSL(219, 63%, 42%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(219,63%,42%)]

Color Conversions

Format Value CSS Usage
HSL hsl(219, 63%, 42%) color: hsl(219, 63%, 42%)
HEX #2857AF color: #2857AF
RGB rgb(40, 87, 175) color: rgb(40, 87, 175)
CMYK cmyk(77%, 50%, 0%, 31%)
HSV hsv(219, 77%, 69%)
HWB hwb(219 16% 31%) color: hwb(219 16% 31%)
OKLCH oklch(0.4751 0.1499 261.51) color: oklch(0.4751 0.1499 261.51)
Lab lab(38.48 16.12 -51.55) color: lab(38.48 16.12 -51.55)
LCH lch(38.48 54.01 287.36) color: lch(38.48 54.01 287.36)

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.83:1
vs Black 3.07: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)

#3C3D9A — rgb(60, 61, 154)

Deuteranopia (Green-blind)

#3A3695 — rgb(58, 54, 149)

Tritanopia (Blue-blind)

#2A8985 — rgb(42, 137, 133)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(219, 63%, 42%);

text

color: hsl(219, 63%, 42%);

border

border: 2px solid hsl(219, 63%, 42%);

gradient light

background: linear-gradient(to right, hsl(219, 63%, 62%), hsl(219, 63%, 42%));

gradient dark

background: linear-gradient(to right, hsl(219, 63%, 42%), hsl(219, 63%, 22%))

hex

background-color: #2857AF;

tailwind

bg-[hsl(219,63%,42%)]

box shadow

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

css variable

--color-primary: hsl(219, 63%, 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(219, 63%, 42%)?

HEX: #2857AF | RGB: rgb(40, 87, 175) | CMYK: 77%, 50%, 0%, 31% | HSV: 219°, 77%, 69%. Copy any format from the conversion table above.

What colors go well with #2857AF?

The complementary color is HSL(39, 63%, 42%). For a triadic harmony, use hues 219°, 339°, and 99°. For analogous combinations, try hues 189° and 249°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(219, 63%, 42%) in CSS?

As HSL: color: hsl(219, 63%, 42%); — As HEX: color: #2857AF; — As RGB: color: rgb(40, 87, 175); — Tailwind CSS: bg-[hsl(219,63%,42%)] — CSS variable: --color-primary: hsl(219, 63%, 42%);