HSL(242, 12%, 17%)

Grayish Blue — Blue color

Adjust Color

Color Information

Color Name

Grayish Blue

Color Family

Blue

Warm / Cool

🔵 Cool

Temperature

N/A

CSS Class

bg-[hsl(242,12%,17%)]

Color Conversions

Format Value CSS Usage
HSL hsl(242, 12%, 17%) color: hsl(242, 12%, 17%)
HEX #262631 color: #262631
RGB rgb(38, 38, 49) color: rgb(38, 38, 49)
CMYK cmyk(22%, 22%, 0%, 81%)
HSV hsv(240, 22%, 19%)
HWB hwb(240 15% 81%) color: hwb(240 15% 81%)
OKLCH oklch(0.2734 0.0202 284.98) color: oklch(0.2734 0.0202 284.98)
Lab lab(15.59 2.93 -7.17) color: lab(15.59 2.93 -7.17)
LCH lch(15.59 7.75 292.23) color: lch(15.59 7.75 292.23)

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.96:1
vs Black 1.4: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)

#26262E — rgb(38, 38, 46)

Deuteranopia (Green-blind)

#26262E — rgb(38, 38, 46)

Tritanopia (Blue-blind)

#262C2C — rgb(38, 44, 44)

Tints & Shades

Tints (Lighter →)

← Shades (Darker)

Saturation (0% → 100%)

CSS Code Snippets

background

background-color: hsl(242, 12%, 17%);

text

color: hsl(242, 12%, 17%);

border

border: 2px solid hsl(242, 12%, 17%);

gradient light

background: linear-gradient(to right, hsl(242, 12%, 37%), hsl(242, 12%, 17%));

gradient dark

background: linear-gradient(to right, hsl(242, 12%, 17%), hsl(242, 12%, 0%))

hex

background-color: #262631;

tailwind

bg-[hsl(242,12%,17%)]

box shadow

box-shadow: 0 4px 6px -1px hsl(242, 12%, 17%, 0.4);

css variable

--color-primary: hsl(242, 12%, 17%);

Related Colors

Use Cases for Grayish Blue

Corporate branding Trust signals Tech products Social media Primary buttons

Frequently Asked Questions

What are all the color codes for HSL(242, 12%, 17%)?

HEX: #262631 | RGB: rgb(38, 38, 49) | CMYK: 22%, 22%, 0%, 81% | HSV: 240°, 22%, 19%. Copy any format from the conversion table above.

What colors go well with #262631?

The complementary color is HSL(62, 12%, 17%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.

How do I use HSL(242, 12%, 17%) in CSS?

As HSL: color: hsl(242, 12%, 17%); — As HEX: color: #262631; — As RGB: color: rgb(38, 38, 49); — Tailwind CSS: bg-[hsl(242,12%,17%)] — CSS variable: --color-primary: hsl(242, 12%, 17%);