HSL(231, 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(231,9%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 9%, 19%) | color: hsl(231, 9%, 19%) | |
| HEX | #2C2D35 | color: #2C2D35 | |
| RGB | rgb(44, 45, 53) | color: rgb(44, 45, 53) | |
| CMYK | cmyk(17%, 15%, 0%, 79%) | — | |
| HSV | hsv(233, 17%, 21%) | — | |
| HWB | hwb(233 17% 79%) | color: hwb(233 17% 79%) | |
| OKLCH | oklch(0.2994 0.0145 279.85) | color: oklch(0.2994 0.0145 279.85) | |
| Lab | lab(18.67 1.6 -5.27) | color: lab(18.67 1.6 -5.27) | |
| LCH | lch(18.67 5.51 286.89) | color: lch(18.67 5.51 286.89) |
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)
#2C2C33 — rgb(44, 44, 51)
Deuteranopia (Green-blind)
#2C2C33 — rgb(44, 44, 51)
Tritanopia (Blue-blind)
#2C3231 — rgb(44, 50, 49)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 9%, 19%);
text
color: hsl(231, 9%, 19%);
border
border: 2px solid hsl(231, 9%, 19%);
gradient light
background: linear-gradient(to right, hsl(231, 9%, 39%), hsl(231, 9%, 19%));
gradient dark
background: linear-gradient(to right, hsl(231, 9%, 19%), hsl(231, 9%, 0%))
hex
background-color: #2C2D35;
tailwind
bg-[hsl(231,9%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 9%, 19%, 0.4);
css variable
--color-primary: hsl(231, 9%, 19%);
Related Colors
Use Cases for Grayish Black
Frequently Asked Questions
What are all the color codes for HSL(231, 9%, 19%)?
HEX: #2C2D35 | RGB: rgb(44, 45, 53) | CMYK: 17%, 15%, 0%, 79% | HSV: 233°, 17%, 21%. Copy any format from the conversion table above.
What colors go well with #2C2D35?
The complementary color is HSL(51, 9%, 19%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(231, 9%, 19%) in CSS?
As HSL: color: hsl(231, 9%, 19%); — As HEX: color: #2C2D35; — As RGB: color: rgb(44, 45, 53); — Tailwind CSS: bg-[hsl(231,9%,19%)] — CSS variable: --color-primary: hsl(231, 9%, 19%);