HSL(262, 9%, 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(262,9%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(262, 9%, 19%) | color: hsl(262, 9%, 19%) | |
| HEX | #2F2C35 | color: #2F2C35 | |
| RGB | rgb(47, 44, 53) | color: rgb(47, 44, 53) | |
| CMYK | cmyk(11%, 17%, 0%, 79%) | — | |
| HSV | hsv(260, 17%, 21%) | — | |
| HWB | hwb(260 17% 79%) | color: hwb(260 17% 79%) | |
| OKLCH | oklch(0.2999 0.0165 300.6) | color: oklch(0.2999 0.0165 300.6) | |
| Lab | lab(18.64 3.55 -5.28) | color: lab(18.64 3.55 -5.28) | |
| LCH | lch(18.64 6.36 303.91) | color: lch(18.64 6.36 303.91) |
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)
#2E2E33 — rgb(46, 46, 51)
Deuteranopia (Green-blind)
#2E2E32 — rgb(46, 46, 50)
Tritanopia (Blue-blind)
#2F3131 — rgb(47, 49, 49)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(262, 9%, 19%);
text
color: hsl(262, 9%, 19%);
border
border: 2px solid hsl(262, 9%, 19%);
gradient light
background: linear-gradient(to right, hsl(262, 9%, 39%), hsl(262, 9%, 19%));
gradient dark
background: linear-gradient(to right, hsl(262, 9%, 19%), hsl(262, 9%, 0%))
hex
background-color: #2F2C35;
tailwind
bg-[hsl(262,9%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(262, 9%, 19%, 0.4);
css variable
--color-primary: hsl(262, 9%, 19%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(262, 9%, 19%)?
HEX: #2F2C35 | RGB: rgb(47, 44, 53) | CMYK: 11%, 17%, 0%, 79% | HSV: 260°, 17%, 21%. Copy any format from the conversion table above.
What colors go well with #2F2C35?
The complementary color is HSL(82, 9%, 19%). For a triadic harmony, use hues 262°, 22°, and 142°. For analogous combinations, try hues 232° and 292°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(262, 9%, 19%) in CSS?
As HSL: color: hsl(262, 9%, 19%); — As HEX: color: #2F2C35; — As RGB: color: rgb(47, 44, 53); — Tailwind CSS: bg-[hsl(262,9%,19%)] — CSS variable: --color-primary: hsl(262, 9%, 19%);