HSL(197, 58%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(197,58%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(197, 58%, 21%) | color: hsl(197, 58%, 21%) | |
| HEX | #164355 | color: #164355 | |
| RGB | rgb(22, 67, 85) | color: rgb(22, 67, 85) | |
| CMYK | cmyk(74%, 21%, 0%, 67%) | — | |
| HSV | hsv(197, 74%, 33%) | — | |
| HWB | hwb(197 9% 67%) | color: hwb(197 9% 67%) | |
| OKLCH | oklch(0.3608 0.0573 228.15) | color: oklch(0.3608 0.0573 228.15) | |
| Lab | lab(26.27 -8.63 -15.25) | color: lab(26.27 -8.63 -15.25) | |
| LCH | lch(26.27 17.52 240.49) | color: lch(26.27 17.52 240.49) |
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)
#292A51 — rgb(41, 42, 81)
Deuteranopia (Green-blind)
#272450 — rgb(39, 36, 80)
Tritanopia (Blue-blind)
#184D4C — rgb(24, 77, 76)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(197, 58%, 21%);
text
color: hsl(197, 58%, 21%);
border
border: 2px solid hsl(197, 58%, 21%);
gradient light
background: linear-gradient(to right, hsl(197, 58%, 41%), hsl(197, 58%, 21%));
gradient dark
background: linear-gradient(to right, hsl(197, 58%, 21%), hsl(197, 58%, 1%))
hex
background-color: #164355;
tailwind
bg-[hsl(197,58%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(197, 58%, 21%, 0.4);
css variable
--color-primary: hsl(197, 58%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(197, 58%, 21%)?
HEX: #164355 | RGB: rgb(22, 67, 85) | CMYK: 74%, 21%, 0%, 67% | HSV: 197°, 74%, 33%. Copy any format from the conversion table above.
What colors go well with #164355?
The complementary color is HSL(17, 58%, 21%). For a triadic harmony, use hues 197°, 317°, and 77°. For analogous combinations, try hues 167° and 227°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(197, 58%, 21%) in CSS?
As HSL: color: hsl(197, 58%, 21%); — As HEX: color: #164355; — As RGB: color: rgb(22, 67, 85); — Tailwind CSS: bg-[hsl(197,58%,21%)] — CSS variable: --color-primary: hsl(197, 58%, 21%);