HSL(218, 35%, 16%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(218,35%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(218, 35%, 16%) | color: hsl(218, 35%, 16%) | |
| HEX | #1B2537 | color: #1B2537 | |
| RGB | rgb(27, 37, 55) | color: rgb(27, 37, 55) | |
| CMYK | cmyk(51%, 33%, 0%, 78%) | — | |
| HSV | hsv(219, 51%, 22%) | — | |
| HWB | hwb(219 11% 78%) | color: hwb(219 11% 78%) | |
| OKLCH | oklch(0.264 0.0368 261.78) | color: oklch(0.264 0.0368 261.78) | |
| Lab | lab(14.58 1.54 -13.05) | color: lab(14.58 1.54 -13.05) | |
| LCH | lch(14.58 13.14 276.73) | color: lch(14.58 13.14 276.73) |
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)
#1F1F33 — rgb(31, 31, 51)
Deuteranopia (Green-blind)
#1F1E32 — rgb(31, 30, 50)
Tritanopia (Blue-blind)
#1C2F2E — rgb(28, 47, 46)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(218, 35%, 16%);
text
color: hsl(218, 35%, 16%);
border
border: 2px solid hsl(218, 35%, 16%);
gradient light
background: linear-gradient(to right, hsl(218, 35%, 36%), hsl(218, 35%, 16%));
gradient dark
background: linear-gradient(to right, hsl(218, 35%, 16%), hsl(218, 35%, 0%))
hex
background-color: #1B2537;
tailwind
bg-[hsl(218,35%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(218, 35%, 16%, 0.4);
css variable
--color-primary: hsl(218, 35%, 16%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(218, 35%, 16%)?
HEX: #1B2537 | RGB: rgb(27, 37, 55) | CMYK: 51%, 33%, 0%, 78% | HSV: 219°, 51%, 22%. Copy any format from the conversion table above.
What colors go well with #1B2537?
The complementary color is HSL(38, 35%, 16%). For a triadic harmony, use hues 218°, 338°, and 98°. For analogous combinations, try hues 188° and 248°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(218, 35%, 16%) in CSS?
As HSL: color: hsl(218, 35%, 16%); — As HEX: color: #1B2537; — As RGB: color: rgb(27, 37, 55); — Tailwind CSS: bg-[hsl(218,35%,16%)] — CSS variable: --color-primary: hsl(218, 35%, 16%);