HSL(213, 30%, 51%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(213,30%,51%)]

Color Conversions

Format Value CSS Usage
HSL hsl(213, 30%, 51%) color: hsl(213, 30%, 51%)
HEX #5D7EA8 color: #5D7EA8
RGB rgb(93, 126, 168) color: rgb(93, 126, 168)
CMYK cmyk(45%, 25%, 0%, 34%)
HSV hsv(214, 45%, 66%)
HWB hwb(214 36% 34%) color: hwb(214 36% 34%)
OKLCH oklch(0.5851 0.0751 254.81) color: oklch(0.5851 0.0751 254.81)
Lab lab(51.92 -0.2 -26.03) color: lab(51.92 -0.2 -26.03)
LCH lch(51.92 26.03 269.56) color: lch(51.92 26.03 269.56)

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 4.19:1
vs Black 5.02:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#6B6C9E — rgb(107, 108, 158)

Deuteranopia (Green-blind)

#69679B — rgb(105, 103, 155)

Tritanopia (Blue-blind)

#5F9694 — rgb(95, 150, 148)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(213, 30%, 51%);

text

color: hsl(213, 30%, 51%);

border

border: 2px solid hsl(213, 30%, 51%);

gradient light

background: linear-gradient(to right, hsl(213, 30%, 71%), hsl(213, 30%, 51%));

gradient dark

background: linear-gradient(to right, hsl(213, 30%, 51%), hsl(213, 30%, 31%))

hex

background-color: #5D7EA8;

tailwind

bg-[hsl(213,30%,51%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(213, 30%, 51%, 0.4);

css variable

--color-primary: hsl(213, 30%, 51%);

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(213, 30%, 51%)?

HEX: #5D7EA8 | RGB: rgb(93, 126, 168) | CMYK: 45%, 25%, 0%, 34% | HSV: 214°, 45%, 66%. Copy any format from the conversion table above.

What colors go well with #5D7EA8?

The complementary color is HSL(33, 30%, 51%). For a triadic harmony, use hues 213°, 333°, and 93°. For analogous combinations, try hues 183° and 243°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(213, 30%, 51%) in CSS?

As HSL: color: hsl(213, 30%, 51%); — As HEX: color: #5D7EA8; — As RGB: color: rgb(93, 126, 168); — Tailwind CSS: bg-[hsl(213,30%,51%)] — CSS variable: --color-primary: hsl(213, 30%, 51%);