HSL(225, 60%, 28%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(225,60%,28%)]

Color Conversions

Format Value CSS Usage
HSL hsl(225, 60%, 28%) color: hsl(225, 60%, 28%)
HEX #1D3272 color: #1D3272
RGB rgb(29, 50, 114) color: rgb(29, 50, 114)
CMYK cmyk(75%, 56%, 0%, 55%)
HSV hsv(225, 75%, 45%)
HWB hwb(225 11% 55%) color: hwb(225 11% 55%)
OKLCH oklch(0.3407 0.1136 266.59) color: oklch(0.3407 0.1136 266.59)
Lab lab(22.85 15.85 -39.42) color: lab(22.85 15.85 -39.42)
LCH lch(22.85 42.49 291.9) color: lch(22.85 42.49 291.9)

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 11.99:1
vs Black 1.75: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)

#262663 — rgb(38, 38, 99)

Deuteranopia (Green-blind)

#25235F — rgb(37, 35, 95)

Tritanopia (Blue-blind)

#1E5654 — rgb(30, 86, 84)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(225, 60%, 28%);

text

color: hsl(225, 60%, 28%);

border

border: 2px solid hsl(225, 60%, 28%);

gradient light

background: linear-gradient(to right, hsl(225, 60%, 48%), hsl(225, 60%, 28%));

gradient dark

background: linear-gradient(to right, hsl(225, 60%, 28%), hsl(225, 60%, 8%))

hex

background-color: #1D3272;

tailwind

bg-[hsl(225,60%,28%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(225, 60%, 28%, 0.4);

css variable

--color-primary: hsl(225, 60%, 28%);

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(225, 60%, 28%)?

HEX: #1D3272 | RGB: rgb(29, 50, 114) | CMYK: 75%, 56%, 0%, 55% | HSV: 225°, 75%, 45%. Copy any format from the conversion table above.

What colors go well with #1D3272?

The complementary color is HSL(45, 60%, 28%). For a triadic harmony, use hues 225°, 345°, and 105°. For analogous combinations, try hues 195° and 255°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(225, 60%, 28%) in CSS?

As HSL: color: hsl(225, 60%, 28%); — As HEX: color: #1D3272; — As RGB: color: rgb(29, 50, 114); — Tailwind CSS: bg-[hsl(225,60%,28%)] — CSS variable: --color-primary: hsl(225, 60%, 28%);