HSL(245, 45%, 36%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(245,45%,36%)]

Color Conversions

Format Value CSS Usage
HSL hsl(245, 45%, 36%) color: hsl(245, 45%, 36%)
HEX #393285 color: #393285
RGB rgb(57, 50, 133) color: rgb(57, 50, 133)
CMYK cmyk(57%, 62%, 0%, 48%)
HSV hsv(245, 62%, 52%)
HWB hwb(245 20% 48%) color: hwb(245 20% 48%)
OKLCH oklch(0.3761 0.1341 281.6) color: oklch(0.3761 0.1341 281.6)
Lab lab(26.29 27.92 -45.77) color: lab(26.29 27.92 -45.77)
LCH lch(26.29 53.61 301.38) color: lch(26.29 53.61 301.38)

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 10.67:1
vs Black 1.97: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)

#363671 — rgb(54, 54, 113)

Deuteranopia (Green-blind)

#36376C — rgb(54, 55, 108)

Tritanopia (Blue-blind)

#39615E — rgb(57, 97, 94)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(245, 45%, 36%);

text

color: hsl(245, 45%, 36%);

border

border: 2px solid hsl(245, 45%, 36%);

gradient light

background: linear-gradient(to right, hsl(245, 45%, 56%), hsl(245, 45%, 36%));

gradient dark

background: linear-gradient(to right, hsl(245, 45%, 36%), hsl(245, 45%, 16%))

hex

background-color: #393285;

tailwind

bg-[hsl(245,45%,36%)]

box shadow

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

css variable

--color-primary: hsl(245, 45%, 36%);

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(245, 45%, 36%)?

HEX: #393285 | RGB: rgb(57, 50, 133) | CMYK: 57%, 62%, 0%, 48% | HSV: 245°, 62%, 52%. Copy any format from the conversion table above.

What colors go well with #393285?

The complementary color is HSL(65, 45%, 36%). For a triadic harmony, use hues 245°, 5°, and 125°. For analogous combinations, try hues 215° and 275°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(245, 45%, 36%) in CSS?

As HSL: color: hsl(245, 45%, 36%); — As HEX: color: #393285; — As RGB: color: rgb(57, 50, 133); — Tailwind CSS: bg-[hsl(245,45%,36%)] — CSS variable: --color-primary: hsl(245, 45%, 36%);