HSL(221, 4%, 16%)
Grayish Black — Black color
Adjust Color
Color Information
Color Name
Grayish Black
Color Family
Black
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(221,4%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(221, 4%, 16%) | color: hsl(221, 4%, 16%) | |
| HEX | #27282A | color: #27282A | |
| RGB | rgb(39, 40, 42) | color: rgb(39, 40, 42) | |
| CMYK | cmyk(7%, 5%, 0%, 84%) | — | |
| HSV | hsv(220, 7%, 16%) | — | |
| HWB | hwb(220 15% 84%) | color: hwb(220 15% 84%) | |
| OKLCH | oklch(0.2766 0.0039 264.5) | color: oklch(0.2766 0.0039 264.5) | |
| Lab | lab(16.08 0.05 -1.47) | color: lab(16.08 0.05 -1.47) | |
| LCH | lch(16.08 1.47 271.95) | color: lch(16.08 1.47 271.95) |
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)
#27272A — rgb(39, 39, 42)
Deuteranopia (Green-blind)
#272729 — rgb(39, 39, 41)
Tritanopia (Blue-blind)
#272929 — rgb(39, 41, 41)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(221, 4%, 16%);
text
color: hsl(221, 4%, 16%);
border
border: 2px solid hsl(221, 4%, 16%);
gradient light
background: linear-gradient(to right, hsl(221, 4%, 36%), hsl(221, 4%, 16%));
gradient dark
background: linear-gradient(to right, hsl(221, 4%, 16%), hsl(221, 4%, 0%))
hex
background-color: #27282A;
tailwind
bg-[hsl(221,4%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(221, 4%, 16%, 0.4);
css variable
--color-primary: hsl(221, 4%, 16%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(221, 4%, 16%)?
HEX: #27282A | RGB: rgb(39, 40, 42) | CMYK: 7%, 5%, 0%, 84% | HSV: 220°, 7%, 16%. Copy any format from the conversion table above.
What colors go well with #27282A?
The complementary color is HSL(41, 4%, 16%). For a triadic harmony, use hues 221°, 341°, and 101°. For analogous combinations, try hues 191° and 251°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(221, 4%, 16%) in CSS?
As HSL: color: hsl(221, 4%, 16%); — As HEX: color: #27282A; — As RGB: color: rgb(39, 40, 42); — Tailwind CSS: bg-[hsl(221,4%,16%)] — CSS variable: --color-primary: hsl(221, 4%, 16%);