HSL(230, 51%, 21%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(230,51%,21%)]

Color Conversions

Format Value CSS Usage
HSL hsl(230, 51%, 21%) color: hsl(230, 51%, 21%)
HEX #1A2351 color: #1A2351
RGB rgb(26, 35, 81) color: rgb(26, 35, 81)
CMYK cmyk(68%, 57%, 0%, 68%)
HSV hsv(230, 68%, 32%)
HWB hwb(230 10% 68%) color: hwb(230 10% 68%)
OKLCH oklch(0.277 0.0845 271.5) color: oklch(0.277 0.0845 271.5)
Lab lab(15.57 12.86 -29.48) color: lab(15.57 12.86 -29.48)
LCH lch(15.57 32.16 293.57) color: lch(15.57 32.16 293.57)

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 14.97:1
vs Black 1.4: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)

#1E1E46 — rgb(30, 30, 70)

Deuteranopia (Green-blind)

#1D1D43 — rgb(29, 29, 67)

Tritanopia (Blue-blind)

#1A3D3B — rgb(26, 61, 59)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(230, 51%, 21%);

text

color: hsl(230, 51%, 21%);

border

border: 2px solid hsl(230, 51%, 21%);

gradient light

background: linear-gradient(to right, hsl(230, 51%, 41%), hsl(230, 51%, 21%));

gradient dark

background: linear-gradient(to right, hsl(230, 51%, 21%), hsl(230, 51%, 1%))

hex

background-color: #1A2351;

tailwind

bg-[hsl(230,51%,21%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(230, 51%, 21%, 0.4);

css variable

--color-primary: hsl(230, 51%, 21%);

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(230, 51%, 21%)?

HEX: #1A2351 | RGB: rgb(26, 35, 81) | CMYK: 68%, 57%, 0%, 68% | HSV: 230°, 68%, 32%. Copy any format from the conversion table above.

What colors go well with #1A2351?

The complementary color is HSL(50, 51%, 21%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(230, 51%, 21%) in CSS?

As HSL: color: hsl(230, 51%, 21%); — As HEX: color: #1A2351; — As RGB: color: rgb(26, 35, 81); — Tailwind CSS: bg-[hsl(230,51%,21%)] — CSS variable: --color-primary: hsl(230, 51%, 21%);