HSL(233, 21%, 46%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(233,21%,46%)]

Color Conversions

Format Value CSS Usage
HSL hsl(233, 21%, 46%) color: hsl(233, 21%, 46%)
HEX #5D628E color: #5D628E
RGB rgb(93, 98, 142) color: rgb(93, 98, 142)
CMYK cmyk(35%, 31%, 0%, 44%)
HSV hsv(234, 35%, 56%)
HWB hwb(234 36% 44%) color: hwb(234 36% 44%)
OKLCH oklch(0.5102 0.07 278.62) color: oklch(0.5102 0.07 278.62)
Lab lab(42.79 9.17 -24.87) color: lab(42.79 9.17 -24.87)
LCH lch(42.79 26.51 290.24) color: lch(42.79 26.51 290.24)

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 5.83:1
vs Black 3.6: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)

#5F5F83 — rgb(95, 95, 131)

Deuteranopia (Green-blind)

#5F5F81 — rgb(95, 95, 129)

Tritanopia (Blue-blind)

#5D7B79 — rgb(93, 123, 121)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(233, 21%, 46%);

text

color: hsl(233, 21%, 46%);

border

border: 2px solid hsl(233, 21%, 46%);

gradient light

background: linear-gradient(to right, hsl(233, 21%, 66%), hsl(233, 21%, 46%));

gradient dark

background: linear-gradient(to right, hsl(233, 21%, 46%), hsl(233, 21%, 26%))

hex

background-color: #5D628E;

tailwind

bg-[hsl(233,21%,46%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(233, 21%, 46%, 0.4);

css variable

--color-primary: hsl(233, 21%, 46%);

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(233, 21%, 46%)?

HEX: #5D628E | RGB: rgb(93, 98, 142) | CMYK: 35%, 31%, 0%, 44% | HSV: 234°, 35%, 56%. Copy any format from the conversion table above.

What colors go well with #5D628E?

The complementary color is HSL(53, 21%, 46%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(233, 21%, 46%) in CSS?

As HSL: color: hsl(233, 21%, 46%); — As HEX: color: #5D628E; — As RGB: color: rgb(93, 98, 142); — Tailwind CSS: bg-[hsl(233,21%,46%)] — CSS variable: --color-primary: hsl(233, 21%, 46%);