HSL(240, 20%, 85%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(240,20%,85%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(240, 20%, 85%) | color: hsl(240, 20%, 85%) | |
| HEX | #D1D1E0 | color: #D1D1E0 | |
| RGB | rgb(209, 209, 224) | color: rgb(209, 209, 224) | |
| CMYK | cmyk(7%, 7%, 0%, 12%) | — | |
| HSV | hsv(240, 7%, 88%) | — | |
| HWB | hwb(240 82% 12%) | color: hwb(240 82% 12%) | |
| OKLCH | oklch(0.8652 0.0206 285.96) | color: oklch(0.8652 0.0206 285.96) | |
| Lab | lab(84.24 2.81 -7.38) | color: lab(84.24 2.81 -7.38) | |
| LCH | lch(84.24 7.9 290.84) | color: lch(84.24 7.9 290.84) |
Color Theory
Accessibility (WCAG)
White text on color
Black text on color
Colored text
Contrast Ratios
AA Normal (4.5:1)
AA Large (3:1)
AAA Normal (7:1)
Best text on this color: black
Color Blindness Simulation
Protanopia (Red-blind)
#D1D1DC — rgb(209, 209, 220)
Deuteranopia (Green-blind)
#D1D1DC — rgb(209, 209, 220)
Tritanopia (Blue-blind)
#D1DAD9 — rgb(209, 218, 217)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(240, 20%, 85%);
text
color: hsl(240, 20%, 85%);
border
border: 2px solid hsl(240, 20%, 85%);
gradient light
background: linear-gradient(to right, hsl(240, 20%, 100%), hsl(240, 20%, 85%));
gradient dark
background: linear-gradient(to right, hsl(240, 20%, 85%), hsl(240, 20%, 65%))
hex
background-color: #D1D1E0;
tailwind
bg-[hsl(240,20%,85%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(240, 20%, 85%, 0.4);
css variable
--color-primary: hsl(240, 20%, 85%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(240, 20%, 85%)?
HEX: #D1D1E0 | RGB: rgb(209, 209, 224) | CMYK: 7%, 7%, 0%, 12% | HSV: 240°, 7%, 88%. Copy any format from the conversion table above.
What colors go well with #D1D1E0?
The complementary color is HSL(60, 20%, 85%). For a triadic harmony, use hues 240°, 0°, and 120°. For analogous combinations, try hues 210° and 270°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(240, 20%, 85%) in CSS?
As HSL: color: hsl(240, 20%, 85%); — As HEX: color: #D1D1E0; — As RGB: color: rgb(209, 209, 224); — Tailwind CSS: bg-[hsl(240,20%,85%)] — CSS variable: --color-primary: hsl(240, 20%, 85%);