HSL(241, 45%, 31%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(241,45%,31%)]

Color Conversions

Format Value CSS Usage
HSL hsl(241, 45%, 31%) color: hsl(241, 45%, 31%)
HEX #2D2B73 color: #2D2B73
RGB rgb(45, 43, 115) color: rgb(45, 43, 115)
CMYK cmyk(61%, 63%, 0%, 55%)
HSV hsv(242, 63%, 45%)
HWB hwb(242 17% 55%) color: hwb(242 17% 55%)
OKLCH oklch(0.3376 0.1202 279.02) color: oklch(0.3376 0.1202 279.02)
Lab lab(22.03 23.93 -41.34) color: lab(22.03 23.93 -41.34)
LCH lch(22.03 47.77 300.06) color: lch(22.03 47.77 300.06)

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.32:1
vs Black 1.7: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)

#2C2C62 — rgb(44, 44, 98)

Deuteranopia (Green-blind)

#2C2C5D — rgb(44, 44, 93)

Tritanopia (Blue-blind)

#2D5451 — rgb(45, 84, 81)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(241, 45%, 31%);

text

color: hsl(241, 45%, 31%);

border

border: 2px solid hsl(241, 45%, 31%);

gradient light

background: linear-gradient(to right, hsl(241, 45%, 51%), hsl(241, 45%, 31%));

gradient dark

background: linear-gradient(to right, hsl(241, 45%, 31%), hsl(241, 45%, 11%))

hex

background-color: #2D2B73;

tailwind

bg-[hsl(241,45%,31%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(241, 45%, 31%, 0.4);

css variable

--color-primary: hsl(241, 45%, 31%);

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(241, 45%, 31%)?

HEX: #2D2B73 | RGB: rgb(45, 43, 115) | CMYK: 61%, 63%, 0%, 55% | HSV: 242°, 63%, 45%. Copy any format from the conversion table above.

What colors go well with #2D2B73?

The complementary color is HSL(61, 45%, 31%). For a triadic harmony, use hues 241°, 1°, and 121°. For analogous combinations, try hues 211° and 271°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(241, 45%, 31%) in CSS?

As HSL: color: hsl(241, 45%, 31%); — As HEX: color: #2D2B73; — As RGB: color: rgb(45, 43, 115); — Tailwind CSS: bg-[hsl(241,45%,31%)] — CSS variable: --color-primary: hsl(241, 45%, 31%);