HSL(211, 21%, 16%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(211,21%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(211, 21%, 16%) | color: hsl(211, 21%, 16%) | |
| HEX | #202931 | color: #202931 | |
| RGB | rgb(32, 41, 49) | color: rgb(32, 41, 49) | |
| CMYK | cmyk(35%, 16%, 0%, 81%) | — | |
| HSV | hsv(208, 35%, 19%) | — | |
| HWB | hwb(208 12% 81%) | color: hwb(208 12% 81%) | |
| OKLCH | oklch(0.2759 0.0195 245.42) | color: oklch(0.2759 0.0195 245.42) | |
| Lab | lab(16.08 -1.56 -6.48) | color: lab(16.08 -1.56 -6.48) | |
| LCH | lch(16.08 6.67 256.46) | color: lch(16.08 6.67 256.46) |
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: white
Color Blindness Simulation
Protanopia (Red-blind)
#24242F — rgb(36, 36, 47)
Deuteranopia (Green-blind)
#23232F — rgb(35, 35, 47)
Tritanopia (Blue-blind)
#202E2D — rgb(32, 46, 45)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(211, 21%, 16%);
text
color: hsl(211, 21%, 16%);
border
border: 2px solid hsl(211, 21%, 16%);
gradient light
background: linear-gradient(to right, hsl(211, 21%, 36%), hsl(211, 21%, 16%));
gradient dark
background: linear-gradient(to right, hsl(211, 21%, 16%), hsl(211, 21%, 0%))
hex
background-color: #202931;
tailwind
bg-[hsl(211,21%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(211, 21%, 16%, 0.4);
css variable
--color-primary: hsl(211, 21%, 16%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(211, 21%, 16%)?
HEX: #202931 | RGB: rgb(32, 41, 49) | CMYK: 35%, 16%, 0%, 81% | HSV: 208°, 35%, 19%. Copy any format from the conversion table above.
What colors go well with #202931?
The complementary color is HSL(31, 21%, 16%). For a triadic harmony, use hues 211°, 331°, and 91°. For analogous combinations, try hues 181° and 241°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(211, 21%, 16%) in CSS?
As HSL: color: hsl(211, 21%, 16%); — As HEX: color: #202931; — As RGB: color: rgb(32, 41, 49); — Tailwind CSS: bg-[hsl(211,21%,16%)] — CSS variable: --color-primary: hsl(211, 21%, 16%);