HSL(236, 50%, 20%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(236,50%,20%)]

Color Conversions

Format Value CSS Usage
HSL hsl(236, 50%, 20%) color: hsl(236, 50%, 20%)
HEX #1A1D4D color: #1A1D4D
RGB rgb(26, 29, 77) color: rgb(26, 29, 77)
CMYK cmyk(66%, 62%, 0%, 70%)
HSV hsv(236, 66%, 30%)
HWB hwb(236 10% 70%) color: hwb(236 10% 70%)
OKLCH oklch(0.26 0.0871 275.82) color: oklch(0.26 0.0871 275.82)
Lab lab(13.44 15.71 -30.2) color: lab(13.44 15.71 -30.2)
LCH lch(13.44 34.04 297.48) color: lch(13.44 34.04 297.48)

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 15.83:1
vs Black 1.33: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)

#1B1B41 — rgb(27, 27, 65)

Deuteranopia (Green-blind)

#1B1B3F — rgb(27, 27, 63)

Tritanopia (Blue-blind)

#1A3836 — rgb(26, 56, 54)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(236, 50%, 20%);

text

color: hsl(236, 50%, 20%);

border

border: 2px solid hsl(236, 50%, 20%);

gradient light

background: linear-gradient(to right, hsl(236, 50%, 40%), hsl(236, 50%, 20%));

gradient dark

background: linear-gradient(to right, hsl(236, 50%, 20%), hsl(236, 50%, 0%))

hex

background-color: #1A1D4D;

tailwind

bg-[hsl(236,50%,20%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(236, 50%, 20%, 0.4);

css variable

--color-primary: hsl(236, 50%, 20%);

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(236, 50%, 20%)?

HEX: #1A1D4D | RGB: rgb(26, 29, 77) | CMYK: 66%, 62%, 0%, 70% | HSV: 236°, 66%, 30%. Copy any format from the conversion table above.

What colors go well with #1A1D4D?

The complementary color is HSL(56, 50%, 20%). For a triadic harmony, use hues 236°, 356°, and 116°. For analogous combinations, try hues 206° and 266°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(236, 50%, 20%) in CSS?

As HSL: color: hsl(236, 50%, 20%); — As HEX: color: #1A1D4D; — As RGB: color: rgb(26, 29, 77); — Tailwind CSS: bg-[hsl(236,50%,20%)] — CSS variable: --color-primary: hsl(236, 50%, 20%);