HSL(227, 31%, 36%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(227,31%,36%)]

Color Conversions

Format Value CSS Usage
HSL hsl(227, 31%, 36%) color: hsl(227, 31%, 36%)
HEX #3F4C78 color: #3F4C78
RGB rgb(63, 76, 120) color: rgb(63, 76, 120)
CMYK cmyk(48%, 37%, 0%, 53%)
HSV hsv(226, 48%, 47%)
HWB hwb(226 24% 53%) color: hwb(226 24% 53%)
OKLCH oklch(0.426 0.0752 270.47) color: oklch(0.426 0.0752 270.47)
Lab lab(33.1 7.72 -26.73) color: lab(33.1 7.72 -26.73)
LCH lch(33.1 27.82 286.11) color: lch(33.1 27.82 286.11)

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 8.35:1
vs Black 2.52: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)

#45456D — rgb(69, 69, 109)

Deuteranopia (Green-blind)

#44436B — rgb(68, 67, 107)

Tritanopia (Blue-blind)

#406563 — rgb(64, 101, 99)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(227, 31%, 36%);

text

color: hsl(227, 31%, 36%);

border

border: 2px solid hsl(227, 31%, 36%);

gradient light

background: linear-gradient(to right, hsl(227, 31%, 56%), hsl(227, 31%, 36%));

gradient dark

background: linear-gradient(to right, hsl(227, 31%, 36%), hsl(227, 31%, 16%))

hex

background-color: #3F4C78;

tailwind

bg-[hsl(227,31%,36%)]

box shadow

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

css variable

--color-primary: hsl(227, 31%, 36%);

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(227, 31%, 36%)?

HEX: #3F4C78 | RGB: rgb(63, 76, 120) | CMYK: 48%, 37%, 0%, 53% | HSV: 226°, 48%, 47%. Copy any format from the conversion table above.

What colors go well with #3F4C78?

The complementary color is HSL(47, 31%, 36%). For a triadic harmony, use hues 227°, 347°, and 107°. For analogous combinations, try hues 197° and 257°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(227, 31%, 36%) in CSS?

As HSL: color: hsl(227, 31%, 36%); — As HEX: color: #3F4C78; — As RGB: color: rgb(63, 76, 120); — Tailwind CSS: bg-[hsl(227,31%,36%)] — CSS variable: --color-primary: hsl(227, 31%, 36%);