HSL(242, 34%, 34%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(242,34%,34%)]

Color Conversions

Format Value CSS Usage
HSL hsl(242, 34%, 34%) color: hsl(242, 34%, 34%)
HEX #3B3974 color: #3B3974
RGB rgb(59, 57, 116) color: rgb(59, 57, 116)
CMYK cmyk(49%, 51%, 0%, 55%)
HSV hsv(242, 51%, 45%)
HWB hwb(242 22% 55%) color: hwb(242 22% 55%)
OKLCH oklch(0.3784 0.0983 282.16) color: oklch(0.3784 0.0983 282.16)
Lab lab(27.06 17.98 -33.8) color: lab(27.06 17.98 -33.8)
LCH lch(27.06 38.28 298.01) color: lch(27.06 38.28 298.01)

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.38:1
vs Black 2.02: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)

#3A3A66 — rgb(58, 58, 102)

Deuteranopia (Green-blind)

#3A3A62 — rgb(58, 58, 98)

Tritanopia (Blue-blind)

#3B5A58 — rgb(59, 90, 88)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(242, 34%, 34%);

text

color: hsl(242, 34%, 34%);

border

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

gradient light

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

gradient dark

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

hex

background-color: #3B3974;

tailwind

bg-[hsl(242,34%,34%)]

box shadow

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

css variable

--color-primary: hsl(242, 34%, 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(242, 34%, 34%)?

HEX: #3B3974 | RGB: rgb(59, 57, 116) | CMYK: 49%, 51%, 0%, 55% | HSV: 242°, 51%, 45%. Copy any format from the conversion table above.

What colors go well with #3B3974?

The complementary color is HSL(62, 34%, 34%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(242, 34%, 34%) in CSS?

As HSL: color: hsl(242, 34%, 34%); — As HEX: color: #3B3974; — As RGB: color: rgb(59, 57, 116); — Tailwind CSS: bg-[hsl(242,34%,34%)] — CSS variable: --color-primary: hsl(242, 34%, 34%);