HSL(252, 45%, 33%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(252,45%,33%)]

Color Conversions

Format Value CSS Usage
HSL hsl(252, 45%, 33%) color: hsl(252, 45%, 33%)
HEX #3D2E7A color: #3D2E7A
RGB rgb(61, 46, 122) color: rgb(61, 46, 122)
CMYK cmyk(50%, 62%, 0%, 52%)
HSV hsv(252, 62%, 48%)
HWB hwb(252 18% 52%) color: hwb(252 18% 52%)
OKLCH oklch(0.3633 0.1238 287.67) color: oklch(0.3633 0.1238 287.67)
Lab lab(24.8 27.7 -41.24) color: lab(24.8 27.7 -41.24)
LCH lch(24.8 49.68 303.89) color: lch(24.8 49.68 303.89)

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 11.23:1
vs Black 1.87: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)

#373668 — rgb(55, 54, 104)

Deuteranopia (Green-blind)

#373963 — rgb(55, 57, 99)

Tritanopia (Blue-blind)

#3C5956 — rgb(60, 89, 86)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(252, 45%, 33%);

text

color: hsl(252, 45%, 33%);

border

border: 2px solid hsl(252, 45%, 33%);

gradient light

background: linear-gradient(to right, hsl(252, 45%, 53%), hsl(252, 45%, 33%));

gradient dark

background: linear-gradient(to right, hsl(252, 45%, 33%), hsl(252, 45%, 13%))

hex

background-color: #3D2E7A;

tailwind

bg-[hsl(252,45%,33%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(252, 45%, 33%, 0.4);

css variable

--color-primary: hsl(252, 45%, 33%);

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(252, 45%, 33%)?

HEX: #3D2E7A | RGB: rgb(61, 46, 122) | CMYK: 50%, 62%, 0%, 52% | HSV: 252°, 62%, 48%. Copy any format from the conversion table above.

What colors go well with #3D2E7A?

The complementary color is HSL(72, 45%, 33%). For a triadic harmony, use hues 252°, 12°, and 132°. For analogous combinations, try hues 222° and 282°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(252, 45%, 33%) in CSS?

As HSL: color: hsl(252, 45%, 33%); — As HEX: color: #3D2E7A; — As RGB: color: rgb(61, 46, 122); — Tailwind CSS: bg-[hsl(252,45%,33%)] — CSS variable: --color-primary: hsl(252, 45%, 33%);