HSL(217, 17%, 18%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
N/A
CSS Class
bg-[hsl(217,17%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(217, 17%, 18%) | color: hsl(217, 17%, 18%) | |
| HEX | #262C36 | color: #262C36 | |
| RGB | rgb(38, 44, 54) | color: rgb(38, 44, 54) | |
| CMYK | cmyk(30%, 19%, 0%, 79%) | — | |
| HSV | hsv(218, 30%, 21%) | — | |
| HWB | hwb(218 15% 79%) | color: hwb(218 15% 79%) | |
| OKLCH | oklch(0.2916 0.0202 260.62) | color: oklch(0.2916 0.0202 260.62) | |
| Lab | lab(17.83 0.18 -7.28) | color: lab(17.83 0.18 -7.28) | |
| LCH | lch(17.83 7.28 271.42) | color: lch(17.83 7.28 271.42) |
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)
#292934 — rgb(41, 41, 52)
Deuteranopia (Green-blind)
#282833 — rgb(40, 40, 51)
Tritanopia (Blue-blind)
#263231 — rgb(38, 50, 49)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(217, 17%, 18%);
text
color: hsl(217, 17%, 18%);
border
border: 2px solid hsl(217, 17%, 18%);
gradient light
background: linear-gradient(to right, hsl(217, 17%, 38%), hsl(217, 17%, 18%));
gradient dark
background: linear-gradient(to right, hsl(217, 17%, 18%), hsl(217, 17%, 0%))
hex
background-color: #262C36;
tailwind
bg-[hsl(217,17%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(217, 17%, 18%, 0.4);
css variable
--color-primary: hsl(217, 17%, 18%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(217, 17%, 18%)?
HEX: #262C36 | RGB: rgb(38, 44, 54) | CMYK: 30%, 19%, 0%, 79% | HSV: 218°, 30%, 21%. Copy any format from the conversion table above.
What colors go well with #262C36?
The complementary color is HSL(37, 17%, 18%). For a triadic harmony, use hues 217°, 337°, and 97°. For analogous combinations, try hues 187° and 247°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(217, 17%, 18%) in CSS?
As HSL: color: hsl(217, 17%, 18%); — As HEX: color: #262C36; — As RGB: color: rgb(38, 44, 54); — Tailwind CSS: bg-[hsl(217,17%,18%)] — CSS variable: --color-primary: hsl(217, 17%, 18%);