HSL(202, 62%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(202,62%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(202, 62%, 40%) | color: hsl(202, 62%, 40%) | |
| HEX | #2777A5 | color: #2777A5 | |
| RGB | rgb(39, 119, 165) | color: rgb(39, 119, 165) | |
| CMYK | cmyk(76%, 28%, 0%, 35%) | — | |
| HSV | hsv(202, 76%, 65%) | — | |
| HWB | hwb(202 16% 35%) | color: hwb(202 16% 35%) | |
| OKLCH | oklch(0.5429 0.1041 238.62) | color: oklch(0.5429 0.1041 238.62) | |
| Lab | lab(47.42 -7.9 -31.46) | color: lab(47.42 -7.9 -31.46) | |
| LCH | lch(47.42 32.44 255.9) | color: lch(47.42 32.44 255.9) |
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)
#4A4A9A — rgb(74, 74, 154)
Deuteranopia (Green-blind)
#453F97 — rgb(69, 63, 151)
Tritanopia (Blue-blind)
#2B918F — rgb(43, 145, 143)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(202, 62%, 40%);
text
color: hsl(202, 62%, 40%);
border
border: 2px solid hsl(202, 62%, 40%);
gradient light
background: linear-gradient(to right, hsl(202, 62%, 60%), hsl(202, 62%, 40%));
gradient dark
background: linear-gradient(to right, hsl(202, 62%, 40%), hsl(202, 62%, 20%))
hex
background-color: #2777A5;
tailwind
bg-[hsl(202,62%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(202, 62%, 40%, 0.4);
css variable
--color-primary: hsl(202, 62%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(202, 62%, 40%)?
HEX: #2777A5 | RGB: rgb(39, 119, 165) | CMYK: 76%, 28%, 0%, 35% | HSV: 202°, 76%, 65%. Copy any format from the conversion table above.
What colors go well with #2777A5?
The complementary color is HSL(22, 62%, 40%). For a triadic harmony, use hues 202°, 322°, and 82°. For analogous combinations, try hues 172° and 232°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(202, 62%, 40%) in CSS?
As HSL: color: hsl(202, 62%, 40%); — As HEX: color: #2777A5; — As RGB: color: rgb(39, 119, 165); — Tailwind CSS: bg-[hsl(202,62%,40%)] — CSS variable: --color-primary: hsl(202, 62%, 40%);