HSL(247, 91%, 30%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(247,91%,30%)]

Color Conversions

Format Value CSS Usage
HSL hsl(247, 91%, 30%) color: hsl(247, 91%, 30%)
HEX #170792 color: #170792
RGB rgb(23, 7, 146) color: rgb(23, 7, 146)
CMYK cmyk(84%, 95%, 0%, 43%)
HSV hsv(247, 95%, 57%)
HWB hwb(247 3% 43%) color: hwb(247 3% 43%)
OKLCH oklch(0.3117 0.1978 269.94) color: oklch(0.3117 0.1978 269.94)
Lab lab(17.5 50.34 -68.44) color: lab(17.5 50.34 -68.44)
LCH lch(17.5 84.96 306.34) color: lch(17.5 84.96 306.34)

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 14.17:1
vs Black 1.48: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)

#101070 — rgb(16, 16, 112)

Deuteranopia (Green-blind)

#111268 — rgb(17, 18, 104)

Tritanopia (Blue-blind)

#165650 — rgb(22, 86, 80)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(247, 91%, 30%);

text

color: hsl(247, 91%, 30%);

border

border: 2px solid hsl(247, 91%, 30%);

gradient light

background: linear-gradient(to right, hsl(247, 91%, 50%), hsl(247, 91%, 30%));

gradient dark

background: linear-gradient(to right, hsl(247, 91%, 30%), hsl(247, 91%, 10%))

hex

background-color: #170792;

tailwind

bg-[hsl(247,91%,30%)]

box shadow

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

css variable

--color-primary: hsl(247, 91%, 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(247, 91%, 30%)?

HEX: #170792 | RGB: rgb(23, 7, 146) | CMYK: 84%, 95%, 0%, 43% | HSV: 247°, 95%, 57%. Copy any format from the conversion table above.

What colors go well with #170792?

The complementary color is HSL(67, 91%, 30%). For a triadic harmony, use hues 247°, 7°, and 127°. For analogous combinations, try hues 217° and 277°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(247, 91%, 30%) in CSS?

As HSL: color: hsl(247, 91%, 30%); — As HEX: color: #170792; — As RGB: color: rgb(23, 7, 146); — Tailwind CSS: bg-[hsl(247,91%,30%)] — CSS variable: --color-primary: hsl(247, 91%, 30%);