HSL(249, 70%, 40%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(249,70%,40%)]

Color Conversions

Format Value CSS Usage
HSL hsl(249, 70%, 40%) color: hsl(249, 70%, 40%)
HEX #341FAD color: #341FAD
RGB rgb(52, 31, 173) color: rgb(52, 31, 173)
CMYK cmyk(70%, 82%, 0%, 32%)
HSV hsv(249, 82%, 68%)
HWB hwb(249 12% 32%) color: hwb(249 12% 32%)
OKLCH oklch(0.3843 0.2064 277.17) color: oklch(0.3843 0.2064 277.17)
Lab lab(25.94 50.83 -70.86) color: lab(25.94 50.83 -70.86)
LCH lch(25.94 87.21 305.65) color: lch(25.94 87.21 305.65)

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.79:1
vs Black 1.95: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)

#2B2B8B — rgb(43, 43, 139)

Deuteranopia (Green-blind)

#2C2E82 — rgb(44, 46, 130)

Tritanopia (Blue-blind)

#33706A — rgb(51, 112, 106)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(249, 70%, 40%);

text

color: hsl(249, 70%, 40%);

border

border: 2px solid hsl(249, 70%, 40%);

gradient light

background: linear-gradient(to right, hsl(249, 70%, 60%), hsl(249, 70%, 40%));

gradient dark

background: linear-gradient(to right, hsl(249, 70%, 40%), hsl(249, 70%, 20%))

hex

background-color: #341FAD;

tailwind

bg-[hsl(249,70%,40%)]

box shadow

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

css variable

--color-primary: hsl(249, 70%, 40%);

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(249, 70%, 40%)?

HEX: #341FAD | RGB: rgb(52, 31, 173) | CMYK: 70%, 82%, 0%, 32% | HSV: 249°, 82%, 68%. Copy any format from the conversion table above.

What colors go well with #341FAD?

The complementary color is HSL(69, 70%, 40%). For a triadic harmony, use hues 249°, 9°, and 129°. For analogous combinations, try hues 219° and 279°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(249, 70%, 40%) in CSS?

As HSL: color: hsl(249, 70%, 40%); — As HEX: color: #341FAD; — As RGB: color: rgb(52, 31, 173); — Tailwind CSS: bg-[hsl(249,70%,40%)] — CSS variable: --color-primary: hsl(249, 70%, 40%);