HSL(267, 2%, 19%)
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(267,2%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(267, 2%, 19%) | color: hsl(267, 2%, 19%) | |
| HEX | #302F31 | color: #302F31 | |
| RGB | rgb(48, 47, 49) | color: rgb(48, 47, 49) | |
| CMYK | cmyk(2%, 4%, 0%, 81%) | — | |
| HSV | hsv(270, 4%, 19%) | — | |
| HWB | hwb(270 18% 81%) | color: hwb(270 18% 81%) | |
| OKLCH | oklch(0.307 0.0038 308.32) | color: oklch(0.307 0.0038 308.32) | |
| Lab | lab(19.57 0.92 -1.12) | color: lab(19.57 0.92 -1.12) | |
| LCH | lch(19.57 1.45 309.4) | color: lch(19.57 1.45 309.4) |
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)
#303031 — rgb(48, 48, 49)
Deuteranopia (Green-blind)
#303030 — rgb(48, 48, 48)
Tritanopia (Blue-blind)
#303030 — rgb(48, 48, 48)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(267, 2%, 19%);
text
color: hsl(267, 2%, 19%);
border
border: 2px solid hsl(267, 2%, 19%);
gradient light
background: linear-gradient(to right, hsl(267, 2%, 39%), hsl(267, 2%, 19%));
gradient dark
background: linear-gradient(to right, hsl(267, 2%, 19%), hsl(267, 2%, 0%))
hex
background-color: #302F31;
tailwind
bg-[hsl(267,2%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(267, 2%, 19%, 0.4);
css variable
--color-primary: hsl(267, 2%, 19%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(267, 2%, 19%)?
HEX: #302F31 | RGB: rgb(48, 47, 49) | CMYK: 2%, 4%, 0%, 81% | HSV: 270°, 4%, 19%. Copy any format from the conversion table above.
What colors go well with #302F31?
The complementary color is HSL(87, 2%, 19%). For a triadic harmony, use hues 267°, 27°, and 147°. For analogous combinations, try hues 237° and 297°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(267, 2%, 19%) in CSS?
As HSL: color: hsl(267, 2%, 19%); — As HEX: color: #302F31; — As RGB: color: rgb(48, 47, 49); — Tailwind CSS: bg-[hsl(267,2%,19%)] — CSS variable: --color-primary: hsl(267, 2%, 19%);