HSL(210, 20%, 50%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(210,20%,50%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(210, 20%, 50%) | color: hsl(210, 20%, 50%) | |
| HEX | #668099 | color: #668099 | |
| RGB | rgb(102, 128, 153) | color: rgb(102, 128, 153) | |
| CMYK | cmyk(33%, 16%, 0%, 40%) | — | |
| HSV | hsv(209, 33%, 60%) | — | |
| HWB | hwb(209 40% 40%) | color: hwb(209 40% 40%) | |
| OKLCH | oklch(0.5889 0.0488 247.65) | color: oklch(0.5889 0.0488 247.65) | |
| Lab | lab(52.47 -3.04 -16.43) | color: lab(52.47 -3.04 -16.43) | |
| LCH | lch(52.47 16.71 259.52) | color: lch(52.47 16.71 259.52) |
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)
#717193 — rgb(113, 113, 147)
Deuteranopia (Green-blind)
#706E92 — rgb(112, 110, 146)
Tritanopia (Blue-blind)
#678E8D — rgb(103, 142, 141)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(210, 20%, 50%);
text
color: hsl(210, 20%, 50%);
border
border: 2px solid hsl(210, 20%, 50%);
gradient light
background: linear-gradient(to right, hsl(210, 20%, 70%), hsl(210, 20%, 50%));
gradient dark
background: linear-gradient(to right, hsl(210, 20%, 50%), hsl(210, 20%, 30%))
hex
background-color: #668099;
tailwind
bg-[hsl(210,20%,50%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(210, 20%, 50%, 0.4);
css variable
--color-primary: hsl(210, 20%, 50%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(210, 20%, 50%)?
HEX: #668099 | RGB: rgb(102, 128, 153) | CMYK: 33%, 16%, 0%, 40% | HSV: 209°, 33%, 60%. Copy any format from the conversion table above.
What colors go well with #668099?
The complementary color is HSL(30, 20%, 50%). For a triadic harmony, use hues 210°, 330°, and 90°. For analogous combinations, try hues 180° and 240°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(210, 20%, 50%) in CSS?
As HSL: color: hsl(210, 20%, 50%); — As HEX: color: #668099; — As RGB: color: rgb(102, 128, 153); — Tailwind CSS: bg-[hsl(210,20%,50%)] — CSS variable: --color-primary: hsl(210, 20%, 50%);