HSL(220, 62%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(220,62%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(220, 62%, 42%) | color: hsl(220, 62%, 42%) | |
| HEX | #2955AE | color: #2955AE | |
| RGB | rgb(41, 85, 174) | color: rgb(41, 85, 174) | |
| CMYK | cmyk(76%, 51%, 0%, 32%) | — | |
| HSV | hsv(220, 76%, 68%) | — | |
| HWB | hwb(220 16% 32%) | color: hwb(220 16% 32%) | |
| OKLCH | oklch(0.4704 0.1507 262.4) | color: oklch(0.4704 0.1507 262.4) | |
| Lab | lab(37.88 17.17 -51.93) | color: lab(37.88 17.17 -51.93) | |
| LCH | lch(37.88 54.69 288.3) | color: lch(37.88 54.69 288.3) |
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)
#3C3C98 — rgb(60, 60, 152)
Deuteranopia (Green-blind)
#3A3693 — rgb(58, 54, 147)
Tritanopia (Blue-blind)
#2B8784 — rgb(43, 135, 132)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(220, 62%, 42%);
text
color: hsl(220, 62%, 42%);
border
border: 2px solid hsl(220, 62%, 42%);
gradient light
background: linear-gradient(to right, hsl(220, 62%, 62%), hsl(220, 62%, 42%));
gradient dark
background: linear-gradient(to right, hsl(220, 62%, 42%), hsl(220, 62%, 22%))
hex
background-color: #2955AE;
tailwind
bg-[hsl(220,62%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(220, 62%, 42%, 0.4);
css variable
--color-primary: hsl(220, 62%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(220, 62%, 42%)?
HEX: #2955AE | RGB: rgb(41, 85, 174) | CMYK: 76%, 51%, 0%, 32% | HSV: 220°, 76%, 68%. Copy any format from the conversion table above.
What colors go well with #2955AE?
The complementary color is HSL(40, 62%, 42%). 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, 62%, 42%) in CSS?
As HSL: color: hsl(220, 62%, 42%); — As HEX: color: #2955AE; — As RGB: color: rgb(41, 85, 174); — Tailwind CSS: bg-[hsl(220,62%,42%)] — CSS variable: --color-primary: hsl(220, 62%, 42%);