HSL(242, 21%, 85%)

Blue — Blue color

Adjust Color

Color Information

Color Name

Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

9000K

CSS Class

bg-[hsl(242,21%,85%)]

Color Conversions

Format Value CSS Usage
HSL hsl(242, 21%, 85%) color: hsl(242, 21%, 85%)
HEX #D1D1E1 color: #D1D1E1
RGB rgb(209, 209, 225) color: rgb(209, 209, 225)
CMYK cmyk(7%, 7%, 0%, 12%)
HSV hsv(240, 7%, 88%)
HWB hwb(240 82% 12%) color: hwb(240 82% 12%)
OKLCH oklch(0.8655 0.0219 285.93) color: oklch(0.8655 0.0219 285.93)
Lab lab(84.27 3.01 -7.87) color: lab(84.27 3.01 -7.87)
LCH lch(84.27 8.43 290.93) color: lch(84.27 8.43 290.93)

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 1.51:1
vs Black 13.92:1

AA Normal (4.5:1)

on White: FAIL ✗ on Black: PASS ✓

AA Large (3:1)

on White: FAIL ✗ on Black: PASS ✓

AAA Normal (7:1)

on White: FAIL ✗

Best text on this color: black

Color Blindness Simulation

Protanopia (Red-blind)

#D1D1DD — rgb(209, 209, 221)

Deuteranopia (Green-blind)

#D1D1DC — rgb(209, 209, 220)

Tritanopia (Blue-blind)

#D1DAD9 — rgb(209, 218, 217)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(242, 21%, 85%);

text

color: hsl(242, 21%, 85%);

border

border: 2px solid hsl(242, 21%, 85%);

gradient light

background: linear-gradient(to right, hsl(242, 21%, 100%), hsl(242, 21%, 85%));

gradient dark

background: linear-gradient(to right, hsl(242, 21%, 85%), hsl(242, 21%, 65%))

hex

background-color: #D1D1E1;

tailwind

bg-[hsl(242,21%,85%)]

box shadow

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

css variable

--color-primary: hsl(242, 21%, 85%);

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(242, 21%, 85%)?

HEX: #D1D1E1 | RGB: rgb(209, 209, 225) | CMYK: 7%, 7%, 0%, 12% | HSV: 240°, 7%, 88%. Copy any format from the conversion table above.

What colors go well with #D1D1E1?

The complementary color is HSL(62, 21%, 85%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(242, 21%, 85%) in CSS?

As HSL: color: hsl(242, 21%, 85%); — As HEX: color: #D1D1E1; — As RGB: color: rgb(209, 209, 225); — Tailwind CSS: bg-[hsl(242,21%,85%)] — CSS variable: --color-primary: hsl(242, 21%, 85%);