HSL(242, 28%, 81%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,28%,81%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 28%, 81%) | color: hsl(242, 28%, 81%) | |
| HEX | #C2C1DC | color: #C2C1DC | |
| RGB | rgb(194, 193, 220) | color: rgb(194, 193, 220) | |
| CMYK | cmyk(12%, 12%, 0%, 14%) | — | |
| HSV | hsv(242, 12%, 86%) | — | |
| HWB | hwb(242 76% 14%) | color: hwb(242 76% 14%) | |
| OKLCH | oklch(0.8203 0.0376 287.24) | color: oklch(0.8203 0.0376 287.24) | |
| Lab | lab(78.91 5.61 -13.31) | color: lab(78.91 5.61 -13.31) | |
| LCH | lch(78.91 14.44 292.85) | color: lch(78.91 14.44 292.85) |
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)
#C2C2D5 — rgb(194, 194, 213)
Deuteranopia (Green-blind)
#C2C2D4 — rgb(194, 194, 212)
Tritanopia (Blue-blind)
#C2D0CF — rgb(194, 208, 207)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 28%, 81%);
text
color: hsl(242, 28%, 81%);
border
border: 2px solid hsl(242, 28%, 81%);
gradient light
background: linear-gradient(to right, hsl(242, 28%, 100%), hsl(242, 28%, 81%));
gradient dark
background: linear-gradient(to right, hsl(242, 28%, 81%), hsl(242, 28%, 61%))
hex
background-color: #C2C1DC;
tailwind
bg-[hsl(242,28%,81%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 28%, 81%, 0.4);
css variable
--color-primary: hsl(242, 28%, 81%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 28%, 81%)?
HEX: #C2C1DC | RGB: rgb(194, 193, 220) | CMYK: 12%, 12%, 0%, 14% | HSV: 242°, 12%, 86%. Copy any format from the conversion table above.
What colors go well with #C2C1DC?
The complementary color is HSL(62, 28%, 81%). 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, 28%, 81%) in CSS?
As HSL: color: hsl(242, 28%, 81%); — As HEX: color: #C2C1DC; — As RGB: color: rgb(194, 193, 220); — Tailwind CSS: bg-[hsl(242,28%,81%)] — CSS variable: --color-primary: hsl(242, 28%, 81%);