HSL(251, 66%, 30%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(251,66%,30%)]

Color Conversions

Format Value CSS Usage
HSL hsl(251, 66%, 30%) color: hsl(251, 66%, 30%)
HEX #2D1A7F color: #2D1A7F
RGB rgb(45, 26, 127) color: rgb(45, 26, 127)
CMYK cmyk(65%, 80%, 0%, 50%)
HSV hsv(251, 80%, 50%)
HWB hwb(251 10% 50%) color: hwb(251 10% 50%)
OKLCH oklch(0.3218 0.1572 281.55) color: oklch(0.3218 0.1572 281.55)
Lab lab(19.34 38.45 -53.4) color: lab(19.34 38.45 -53.4)
LCH lch(19.34 65.8 305.76) color: lch(19.34 65.8 305.76)

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.41:1
vs Black 1.57: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)

#252567 — rgb(37, 37, 103)

Deuteranopia (Green-blind)

#262761 — rgb(38, 39, 97)

Tritanopia (Blue-blind)

#2C534F — rgb(44, 83, 79)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(251, 66%, 30%);

text

color: hsl(251, 66%, 30%);

border

border: 2px solid hsl(251, 66%, 30%);

gradient light

background: linear-gradient(to right, hsl(251, 66%, 50%), hsl(251, 66%, 30%));

gradient dark

background: linear-gradient(to right, hsl(251, 66%, 30%), hsl(251, 66%, 10%))

hex

background-color: #2D1A7F;

tailwind

bg-[hsl(251,66%,30%)]

box shadow

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

css variable

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

HEX: #2D1A7F | RGB: rgb(45, 26, 127) | CMYK: 65%, 80%, 0%, 50% | HSV: 251°, 80%, 50%. Copy any format from the conversion table above.

What colors go well with #2D1A7F?

The complementary color is HSL(71, 66%, 30%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(251, 66%, 30%) in CSS?

As HSL: color: hsl(251, 66%, 30%); — As HEX: color: #2D1A7F; — As RGB: color: rgb(45, 26, 127); — Tailwind CSS: bg-[hsl(251,66%,30%)] — CSS variable: --color-primary: hsl(251, 66%, 30%);