HSL(233, 8%, 20%)

Grayish Gray — Gray color

Adjust Color

Color Information

Color Name

Grayish Gray

Color Family

Gray

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(233,8%,20%)]

Color Conversions

Format Value CSS Usage
HSL hsl(233, 8%, 20%) color: hsl(233, 8%, 20%)
HEX #2F3037 color: #2F3037
RGB rgb(47, 48, 55) color: rgb(47, 48, 55)
CMYK cmyk(15%, 13%, 0%, 78%)
HSV hsv(233, 15%, 22%)
HWB hwb(233 19% 78%) color: hwb(233 19% 78%)
OKLCH oklch(0.311 0.0125 279.19) color: oklch(0.311 0.0125 279.19)
Lab lab(20.02 1.32 -4.59) color: lab(20.02 1.32 -4.59)
LCH lch(20.02 4.78 286.04) color: lch(20.02 4.78 286.04)

Color Theory

Complementary

Triadic

Analogous

Tetradic (Square)

Split-Complementary

Accessibility (WCAG)

White text on color

Black text on color

Color on white bg

Colored text

Contrast Ratios

vs White 13.13:1
vs Black 1.6:1

AA Normal (4.5:1)

on White: PASS ✓ on Black: FAIL ✗

AA Large (3:1)

on White: PASS ✓ on Black: FAIL ✗

AAA Normal (7:1)

on White: PASS ✓

Best text on this color: white

Color Blindness Simulation

Protanopia (Red-blind)

#2F2F35 — rgb(47, 47, 53)

Deuteranopia (Green-blind)

#2F2F35 — rgb(47, 47, 53)

Tritanopia (Blue-blind)

#2F3434 — rgb(47, 52, 52)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(233, 8%, 20%);

text

color: hsl(233, 8%, 20%);

border

border: 2px solid hsl(233, 8%, 20%);

gradient light

background: linear-gradient(to right, hsl(233, 8%, 40%), hsl(233, 8%, 20%));

gradient dark

background: linear-gradient(to right, hsl(233, 8%, 20%), hsl(233, 8%, 0%))

hex

background-color: #2F3037;

tailwind

bg-[hsl(233,8%,20%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(233, 8%, 20%, 0.4);

css variable

--color-primary: hsl(233, 8%, 20%);

Related Colors

Use Cases for Grayish Gray

Neutral backgrounds Body text Borders Secondary buttons Disabled states

Frequently Asked Questions

What are all the color codes for HSL(233, 8%, 20%)?

HEX: #2F3037 | RGB: rgb(47, 48, 55) | CMYK: 15%, 13%, 0%, 78% | HSV: 233°, 15%, 22%. Copy any format from the conversion table above.

What colors go well with #2F3037?

The complementary color is HSL(53, 8%, 20%). For a triadic harmony, use hues 233°, 353°, and 113°. For analogous combinations, try hues 203° and 263°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(233, 8%, 20%) in CSS?

As HSL: color: hsl(233, 8%, 20%); — As HEX: color: #2F3037; — As RGB: color: rgb(47, 48, 55); — Tailwind CSS: bg-[hsl(233,8%,20%)] — CSS variable: --color-primary: hsl(233, 8%, 20%);