HSL(245, 70%, 30%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(245,70%,30%)]

Color Conversions

Format Value CSS Usage
HSL hsl(245, 70%, 30%) color: hsl(245, 70%, 30%)
HEX #201782 color: #201782
RGB rgb(32, 23, 130) color: rgb(32, 23, 130)
CMYK cmyk(75%, 82%, 0%, 49%)
HSV hsv(245, 82%, 51%)
HWB hwb(245 9% 49%) color: hwb(245 9% 49%)
OKLCH oklch(0.3111 0.1667 274.45) color: oklch(0.3111 0.1667 274.45)
Lab lab(18.06 39.66 -57.46) color: lab(18.06 39.66 -57.46)
LCH lch(18.06 69.82 304.61) color: lch(18.06 69.82 304.61)

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 13.94:1
vs Black 1.51: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)

#1C1C68 — rgb(28, 28, 104)

Deuteranopia (Green-blind)

#1D1D62 — rgb(29, 29, 98)

Tritanopia (Blue-blind)

#20544F — rgb(32, 84, 79)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(245, 70%, 30%);

text

color: hsl(245, 70%, 30%);

border

border: 2px solid hsl(245, 70%, 30%);

gradient light

background: linear-gradient(to right, hsl(245, 70%, 50%), hsl(245, 70%, 30%));

gradient dark

background: linear-gradient(to right, hsl(245, 70%, 30%), hsl(245, 70%, 10%))

hex

background-color: #201782;

tailwind

bg-[hsl(245,70%,30%)]

box shadow

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

css variable

--color-primary: hsl(245, 70%, 30%);

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, 70%, 30%)?

HEX: #201782 | RGB: rgb(32, 23, 130) | CMYK: 75%, 82%, 0%, 49% | HSV: 245°, 82%, 51%. Copy any format from the conversion table above.

What colors go well with #201782?

The complementary color is HSL(65, 70%, 30%). 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, 70%, 30%) in CSS?

As HSL: color: hsl(245, 70%, 30%); — As HEX: color: #201782; — As RGB: color: rgb(32, 23, 130); — Tailwind CSS: bg-[hsl(245,70%,30%)] — CSS variable: --color-primary: hsl(245, 70%, 30%);