HSL(204, 60%, 22%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(204,60%,22%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(204, 60%, 22%) | color: hsl(204, 60%, 22%) | |
| HEX | #163F5A | color: #163F5A | |
| RGB | rgb(22, 63, 90) | color: rgb(22, 63, 90) | |
| CMYK | cmyk(76%, 30%, 0%, 65%) | — | |
| HSV | hsv(204, 76%, 35%) | — | |
| HWB | hwb(204 8% 65%) | color: hwb(204 8% 65%) | |
| OKLCH | oklch(0.3527 0.0653 241.09) | color: oklch(0.3527 0.0653 241.09) | |
| Lab | lab(25.15 -4.12 -20.26) | color: lab(25.15 -4.12 -20.26) | |
| LCH | lch(25.15 20.67 258.51) | color: lch(25.15 20.67 258.51) |
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)
#282853 — rgb(40, 40, 83)
Deuteranopia (Green-blind)
#252252 — rgb(37, 34, 82)
Tritanopia (Blue-blind)
#184E4D — rgb(24, 78, 77)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(204, 60%, 22%);
text
color: hsl(204, 60%, 22%);
border
border: 2px solid hsl(204, 60%, 22%);
gradient light
background: linear-gradient(to right, hsl(204, 60%, 42%), hsl(204, 60%, 22%));
gradient dark
background: linear-gradient(to right, hsl(204, 60%, 22%), hsl(204, 60%, 2%))
hex
background-color: #163F5A;
tailwind
bg-[hsl(204,60%,22%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(204, 60%, 22%, 0.4);
css variable
--color-primary: hsl(204, 60%, 22%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(204, 60%, 22%)?
HEX: #163F5A | RGB: rgb(22, 63, 90) | CMYK: 76%, 30%, 0%, 65% | HSV: 204°, 76%, 35%. Copy any format from the conversion table above.
What colors go well with #163F5A?
The complementary color is HSL(24, 60%, 22%). For a triadic harmony, use hues 204°, 324°, and 84°. For analogous combinations, try hues 174° and 234°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(204, 60%, 22%) in CSS?
As HSL: color: hsl(204, 60%, 22%); — As HEX: color: #163F5A; — As RGB: color: rgb(22, 63, 90); — Tailwind CSS: bg-[hsl(204,60%,22%)] — CSS variable: --color-primary: hsl(204, 60%, 22%);