HSL(251, 14%, 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(251,14%,17%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 14%, 17%) | color: hsl(251, 14%, 17%) | |
| HEX | #282531 | color: #282531 | |
| RGB | rgb(40, 37, 49) | color: rgb(40, 37, 49) | |
| CMYK | cmyk(18%, 24%, 0%, 81%) | — | |
| HSV | hsv(255, 24%, 19%) | — | |
| HWB | hwb(255 14% 81%) | color: hwb(255 14% 81%) | |
| OKLCH | oklch(0.273 0.0223 296.35) | color: oklch(0.273 0.0223 296.35) | |
| Lab | lab(15.47 4.47 -7.34) | color: lab(15.47 4.47 -7.34) | |
| LCH | lch(15.47 8.59 301.34) | color: lch(15.47 8.59 301.34) |
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)
#27272E — rgb(39, 39, 46)
Deuteranopia (Green-blind)
#27272D — rgb(39, 39, 45)
Tritanopia (Blue-blind)
#282C2B — rgb(40, 44, 43)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 14%, 17%);
text
color: hsl(251, 14%, 17%);
border
border: 2px solid hsl(251, 14%, 17%);
gradient light
background: linear-gradient(to right, hsl(251, 14%, 37%), hsl(251, 14%, 17%));
gradient dark
background: linear-gradient(to right, hsl(251, 14%, 17%), hsl(251, 14%, 0%))
hex
background-color: #282531;
tailwind
bg-[hsl(251,14%,17%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 14%, 17%, 0.4);
css variable
--color-primary: hsl(251, 14%, 17%);
Related Colors
Use Cases for Grayish Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 14%, 17%)?
HEX: #282531 | RGB: rgb(40, 37, 49) | CMYK: 18%, 24%, 0%, 81% | HSV: 255°, 24%, 19%. Copy any format from the conversion table above.
What colors go well with #282531?
The complementary color is HSL(71, 14%, 17%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(251, 14%, 17%) in CSS?
As HSL: color: hsl(251, 14%, 17%); — As HEX: color: #282531; — As RGB: color: rgb(40, 37, 49); — Tailwind CSS: bg-[hsl(251,14%,17%)] — CSS variable: --color-primary: hsl(251, 14%, 17%);