HSL(250, 60%, 28%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

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

Color Conversions

Format Value CSS Usage
HSL hsl(250, 60%, 28%) color: hsl(250, 60%, 28%)
HEX #2B1D72 color: #2B1D72
RGB rgb(43, 29, 114) color: rgb(43, 29, 114)
CMYK cmyk(62%, 75%, 0%, 55%)
HSV hsv(250, 75%, 45%)
HWB hwb(250 11% 55%) color: hwb(250 11% 55%)
OKLCH oklch(0.3105 0.1376 282.36) color: oklch(0.3105 0.1376 282.36)
Lab lab(18.4 32.25 -46.64) color: lab(18.4 32.25 -46.64)
LCH lch(18.4 56.7 304.66) color: lch(18.4 56.7 304.66)

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

#25255D — rgb(37, 37, 93)

Deuteranopia (Green-blind)

#262759 — rgb(38, 39, 89)

Tritanopia (Blue-blind)

#2A4D4A — rgb(42, 77, 74)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

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

text

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

border

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

gradient light

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

gradient dark

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

hex

background-color: #2B1D72;

tailwind

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

box shadow

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

css variable

--color-primary: hsl(250, 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(250, 60%, 28%)?

HEX: #2B1D72 | RGB: rgb(43, 29, 114) | CMYK: 62%, 75%, 0%, 55% | HSV: 250°, 75%, 45%. Copy any format from the conversion table above.

What colors go well with #2B1D72?

The complementary color is HSL(70, 60%, 28%). For a triadic harmony, use hues 250°, 10°, and 130°. For analogous combinations, try hues 220° and 280°. See the Color Harmony section above for complete palettes with previews.

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

As HSL: color: hsl(250, 60%, 28%); — As HEX: color: #2B1D72; — As RGB: color: rgb(43, 29, 114); — Tailwind CSS: bg-[hsl(250,60%,28%)] — CSS variable: --color-primary: hsl(250, 60%, 28%);