HSL(251, 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(251,4%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 4%, 16%) | color: hsl(251, 4%, 16%) | |
| HEX | #28272A | color: #28272A | |
| RGB | rgb(40, 39, 42) | color: rgb(40, 39, 42) | |
| CMYK | cmyk(5%, 7%, 0%, 84%) | — | |
| HSV | hsv(260, 7%, 16%) | — | |
| HWB | hwb(260 15% 84%) | color: hwb(260 15% 84%) | |
| OKLCH | oklch(0.275 0.0056 301.16) | color: oklch(0.275 0.0056 301.16) | |
| Lab | lab(15.85 1.19 -1.81) | color: lab(15.85 1.19 -1.81) | |
| LCH | lch(15.85 2.17 303.32) | color: lch(15.85 2.17 303.32) |
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)
#282829 — rgb(40, 40, 41)
Deuteranopia (Green-blind)
#282829 — rgb(40, 40, 41)
Tritanopia (Blue-blind)
#282929 — rgb(40, 41, 41)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 4%, 16%);
text
color: hsl(251, 4%, 16%);
border
border: 2px solid hsl(251, 4%, 16%);
gradient light
background: linear-gradient(to right, hsl(251, 4%, 36%), hsl(251, 4%, 16%));
gradient dark
background: linear-gradient(to right, hsl(251, 4%, 16%), hsl(251, 4%, 0%))
hex
background-color: #28272A;
tailwind
bg-[hsl(251,4%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 4%, 16%, 0.4);
css variable
--color-primary: hsl(251, 4%, 16%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(251, 4%, 16%)?
HEX: #28272A | RGB: rgb(40, 39, 42) | CMYK: 5%, 7%, 0%, 84% | HSV: 260°, 7%, 16%. Copy any format from the conversion table above.
What colors go well with #28272A?
The complementary color is HSL(71, 4%, 16%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(251, 4%, 16%) in CSS?
As HSL: color: hsl(251, 4%, 16%); — As HEX: color: #28272A; — As RGB: color: rgb(40, 39, 42); — Tailwind CSS: bg-[hsl(251,4%,16%)] — CSS variable: --color-primary: hsl(251, 4%, 16%);