HSL(251, 81%, 34%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(251,81%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(251, 81%, 34%) color: hsl(251, 81%, 34%)
HEX #2A109D color: #2A109D
RGB rgb(42, 16, 157) color: rgb(42, 16, 157)
CMYK cmyk(73%, 90%, 0%, 38%)
HSV hsv(251, 90%, 62%)
HWB hwb(251 6% 38%) color: hwb(251 6% 38%)
OKLCH oklch(0.3442 0.2005 276.05) color: oklch(0.3442 0.2005 276.05)
Lab lab(21.19 51.48 -69.05) color: lab(21.19 51.48 -69.05)
LCH lch(21.19 86.13 306.71) color: lch(21.19 86.13 306.71)

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 12.65:1
vs Black 1.66: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)

#1F1F7B — rgb(31, 31, 123)

Deuteranopia (Green-blind)

#202273 — rgb(32, 34, 115)

Tritanopia (Blue-blind)

#29605A — rgb(41, 96, 90)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(251, 81%, 34%);

text

color: hsl(251, 81%, 34%);

border

border: 2px solid hsl(251, 81%, 34%);

gradient light

background: linear-gradient(to right, hsl(251, 81%, 54%), hsl(251, 81%, 34%));

gradient dark

background: linear-gradient(to right, hsl(251, 81%, 34%), hsl(251, 81%, 14%))

hex

background-color: #2A109D;

tailwind

bg-[hsl(251,81%,34%)]

box shadow

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

css variable

--color-primary: hsl(251, 81%, 34%);

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, 81%, 34%)?

HEX: #2A109D | RGB: rgb(42, 16, 157) | CMYK: 73%, 90%, 0%, 38% | HSV: 251°, 90%, 62%. Copy any format from the conversion table above.

What colors go well with #2A109D?

The complementary color is HSL(71, 81%, 34%). 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, 81%, 34%) in CSS?

As HSL: color: hsl(251, 81%, 34%); — As HEX: color: #2A109D; — As RGB: color: rgb(42, 16, 157); — Tailwind CSS: bg-[hsl(251,81%,34%)] — CSS variable: --color-primary: hsl(251, 81%, 34%);