HSL(232, 3%, 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(232,3%,16%)]

Color Conversions

Format Value CSS Usage
HSL hsl(232, 3%, 16%) color: hsl(232, 3%, 16%)
HEX #28282A color: #28282A
RGB rgb(40, 40, 42) color: rgb(40, 40, 42)
CMYK cmyk(5%, 5%, 0%, 84%)
HSV hsv(240, 5%, 16%)
HWB hwb(240 15% 84%) color: hwb(240 15% 84%)
OKLCH oklch(0.2776 0.0036 286.16) color: oklch(0.2776 0.0036 286.16)
Lab lab(16.18 0.49 -1.31) color: lab(16.18 0.49 -1.31)
LCH lch(16.18 1.4 290.51) color: lch(16.18 1.4 290.51)

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 14.71:1
vs Black 1.43: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)

#28282A — rgb(40, 40, 42)

Deuteranopia (Green-blind)

#282829 — rgb(40, 40, 41)

Tritanopia (Blue-blind)

#282929 — rgb(40, 41, 41)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(232, 3%, 16%);

text

color: hsl(232, 3%, 16%);

border

border: 2px solid hsl(232, 3%, 16%);

gradient light

background: linear-gradient(to right, hsl(232, 3%, 36%), hsl(232, 3%, 16%));

gradient dark

background: linear-gradient(to right, hsl(232, 3%, 16%), hsl(232, 3%, 0%))

hex

background-color: #28282A;

tailwind

bg-[hsl(232,3%,16%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(232, 3%, 16%, 0.4);

css variable

--color-primary: hsl(232, 3%, 16%);

Related Colors

Use Cases for Grayish Black

UI elements Web design Branding Graphic design Print design

Frequently Asked Questions

What are all the color codes for HSL(232, 3%, 16%)?

HEX: #28282A | RGB: rgb(40, 40, 42) | CMYK: 5%, 5%, 0%, 84% | HSV: 240°, 5%, 16%. Copy any format from the conversion table above.

What colors go well with #28282A?

The complementary color is HSL(52, 3%, 16%). For a triadic harmony, use hues 232°, 352°, and 112°. For analogous combinations, try hues 202° and 262°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(232, 3%, 16%) in CSS?

As HSL: color: hsl(232, 3%, 16%); — As HEX: color: #28282A; — As RGB: color: rgb(40, 40, 42); — Tailwind CSS: bg-[hsl(232,3%,16%)] — CSS variable: --color-primary: hsl(232, 3%, 16%);