HSL(202, 70%, 41%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(202,70%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(202, 70%, 41%) | color: hsl(202, 70%, 41%) | |
| HEX | #1F7CB2 | color: #1F7CB2 | |
| RGB | rgb(31, 124, 178) | color: rgb(31, 124, 178) | |
| CMYK | cmyk(83%, 30%, 0%, 30%) | — | |
| HSV | hsv(202, 83%, 70%) | — | |
| HWB | hwb(202 12% 30%) | color: hwb(202 12% 30%) | |
| OKLCH | oklch(0.5601 0.1173 240.26) | color: oklch(0.5601 0.1173 240.26) | |
| Lab | lab(49.4 -6.93 -35.93) | color: lab(49.4 -6.93 -35.93) | |
| LCH | lch(49.4 36.59 259.08) | color: lch(49.4 36.59 259.08) |
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)
#4748A5 — rgb(71, 72, 165)
Deuteranopia (Green-blind)
#423BA2 — rgb(66, 59, 162)
Tritanopia (Blue-blind)
#249B98 — rgb(36, 155, 152)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(202, 70%, 41%);
text
color: hsl(202, 70%, 41%);
border
border: 2px solid hsl(202, 70%, 41%);
gradient light
background: linear-gradient(to right, hsl(202, 70%, 61%), hsl(202, 70%, 41%));
gradient dark
background: linear-gradient(to right, hsl(202, 70%, 41%), hsl(202, 70%, 21%))
hex
background-color: #1F7CB2;
tailwind
bg-[hsl(202,70%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(202, 70%, 41%, 0.4);
css variable
--color-primary: hsl(202, 70%, 41%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(202, 70%, 41%)?
HEX: #1F7CB2 | RGB: rgb(31, 124, 178) | CMYK: 83%, 30%, 0%, 30% | HSV: 202°, 83%, 70%. Copy any format from the conversion table above.
What colors go well with #1F7CB2?
The complementary color is HSL(22, 70%, 41%). 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, 70%, 41%) in CSS?
As HSL: color: hsl(202, 70%, 41%); — As HEX: color: #1F7CB2; — As RGB: color: rgb(31, 124, 178); — Tailwind CSS: bg-[hsl(202,70%,41%)] — CSS variable: --color-primary: hsl(202, 70%, 41%);