HSL(227, 74%, 52%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(227,74%,52%)]

Color Conversions

Format Value CSS Usage
HSL hsl(227, 74%, 52%) color: hsl(227, 74%, 52%)
HEX #2A51DF color: #2A51DF
RGB rgb(42, 81, 223) color: rgb(42, 81, 223)
CMYK cmyk(81%, 64%, 0%, 13%)
HSV hsv(227, 81%, 87%)
HWB hwb(227 17% 13%) color: hwb(227 17% 13%)
OKLCH oklch(0.5039 0.2198 266.21) color: oklch(0.5039 0.2198 266.21)
Lab lab(40.74 38.31 -75.73) color: lab(40.74 38.31 -75.73)
LCH lch(40.74 84.87 296.83) color: lch(40.74 84.87 296.83)

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 6.29:1
vs Black 3.34:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#3B3BBD — rgb(59, 59, 189)

Deuteranopia (Green-blind)

#3936B4 — rgb(57, 54, 180)

Tritanopia (Blue-blind)

#2CA29C — rgb(44, 162, 156)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(227, 74%, 52%);

text

color: hsl(227, 74%, 52%);

border

border: 2px solid hsl(227, 74%, 52%);

gradient light

background: linear-gradient(to right, hsl(227, 74%, 72%), hsl(227, 74%, 52%));

gradient dark

background: linear-gradient(to right, hsl(227, 74%, 52%), hsl(227, 74%, 32%))

hex

background-color: #2A51DF;

tailwind

bg-[hsl(227,74%,52%)]

box shadow

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

css variable

--color-primary: hsl(227, 74%, 52%);

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, 74%, 52%)?

HEX: #2A51DF | RGB: rgb(42, 81, 223) | CMYK: 81%, 64%, 0%, 13% | HSV: 227°, 81%, 87%. Copy any format from the conversion table above.

What colors go well with #2A51DF?

The complementary color is HSL(47, 74%, 52%). 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, 74%, 52%) in CSS?

As HSL: color: hsl(227, 74%, 52%); — As HEX: color: #2A51DF; — As RGB: color: rgb(42, 81, 223); — Tailwind CSS: bg-[hsl(227,74%,52%)] — CSS variable: --color-primary: hsl(227, 74%, 52%);