HSL(220, 21%, 37%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(220,21%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(220, 21%, 37%) | color: hsl(220, 21%, 37%) | |
| HEX | #4B5872 | color: #4B5872 | |
| RGB | rgb(75, 88, 114) | color: rgb(75, 88, 114) | |
| CMYK | cmyk(34%, 23%, 0%, 55%) | — | |
| HSV | hsv(220, 34%, 45%) | — | |
| HWB | hwb(220 30% 55%) | color: hwb(220 30% 55%) | |
| OKLCH | oklch(0.4598 0.0456 263.97) | color: oklch(0.4598 0.0456 263.97) | |
| Lab | lab(37.28 1.8 -16.44) | color: lab(37.28 1.8 -16.44) | |
| LCH | lch(37.28 16.54 276.25) | color: lch(37.28 16.54 276.25) |
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)
#51516C — rgb(81, 81, 108)
Deuteranopia (Green-blind)
#504F6A — rgb(80, 79, 106)
Tritanopia (Blue-blind)
#4C6766 — rgb(76, 103, 102)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(220, 21%, 37%);
text
color: hsl(220, 21%, 37%);
border
border: 2px solid hsl(220, 21%, 37%);
gradient light
background: linear-gradient(to right, hsl(220, 21%, 57%), hsl(220, 21%, 37%));
gradient dark
background: linear-gradient(to right, hsl(220, 21%, 37%), hsl(220, 21%, 17%))
hex
background-color: #4B5872;
tailwind
bg-[hsl(220,21%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(220, 21%, 37%, 0.4);
css variable
--color-primary: hsl(220, 21%, 37%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(220, 21%, 37%)?
HEX: #4B5872 | RGB: rgb(75, 88, 114) | CMYK: 34%, 23%, 0%, 55% | HSV: 220°, 34%, 45%. Copy any format from the conversion table above.
What colors go well with #4B5872?
The complementary color is HSL(40, 21%, 37%). For a triadic harmony, use hues 220°, 340°, and 100°. For analogous combinations, try hues 190° and 250°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(220, 21%, 37%) in CSS?
As HSL: color: hsl(220, 21%, 37%); — As HEX: color: #4B5872; — As RGB: color: rgb(75, 88, 114); — Tailwind CSS: bg-[hsl(220,21%,37%)] — CSS variable: --color-primary: hsl(220, 21%, 37%);