HSL(222, 82%, 71%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(222,82%,71%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 82%, 71%) | color: hsl(222, 82%, 71%) | |
| HEX | #789DF2 | color: #789DF2 | |
| RGB | rgb(120, 157, 242) | color: rgb(120, 157, 242) | |
| CMYK | cmyk(50%, 35%, 0%, 5%) | — | |
| HSV | hsv(222, 50%, 95%) | — | |
| HWB | hwb(222 48% 5%) | color: hwb(222 48% 5%) | |
| OKLCH | oklch(0.7049 0.1317 265.34) | color: oklch(0.7049 0.1317 265.34) | |
| Lab | lab(65.37 10.44 -46.54) | color: lab(65.37 10.44 -46.54) | |
| LCH | lch(65.37 47.7 282.64) | color: lch(65.37 47.7 282.64) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#8888DD — rgb(136, 136, 221)
Deuteranopia (Green-blind)
#8683D9 — rgb(134, 131, 217)
Tritanopia (Blue-blind)
#7ACDCA — rgb(122, 205, 202)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 82%, 71%);
text
color: hsl(222, 82%, 71%);
border
border: 2px solid hsl(222, 82%, 71%);
gradient light
background: linear-gradient(to right, hsl(222, 82%, 91%), hsl(222, 82%, 71%));
gradient dark
background: linear-gradient(to right, hsl(222, 82%, 71%), hsl(222, 82%, 51%))
hex
background-color: #789DF2;
tailwind
bg-[hsl(222,82%,71%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 82%, 71%, 0.4);
css variable
--color-primary: hsl(222, 82%, 71%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 82%, 71%)?
HEX: #789DF2 | RGB: rgb(120, 157, 242) | CMYK: 50%, 35%, 0%, 5% | HSV: 222°, 50%, 95%. Copy any format from the conversion table above.
What colors go well with #789DF2?
The complementary color is HSL(42, 82%, 71%). For a triadic harmony, use hues 222°, 342°, and 102°. For analogous combinations, try hues 192° and 252°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(222, 82%, 71%) in CSS?
As HSL: color: hsl(222, 82%, 71%); — As HEX: color: #789DF2; — As RGB: color: rgb(120, 157, 242); — Tailwind CSS: bg-[hsl(222,82%,71%)] — CSS variable: --color-primary: hsl(222, 82%, 71%);