HSL(218, 60%, 52%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(218,60%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(218, 60%, 52%) | color: hsl(218, 60%, 52%) | |
| HEX | #3B71CE | color: #3B71CE | |
| RGB | rgb(59, 113, 206) | color: rgb(59, 113, 206) | |
| CMYK | cmyk(71%, 45%, 0%, 19%) | — | |
| HSV | hsv(218, 71%, 81%) | — | |
| HWB | hwb(218 23% 19%) | color: hwb(218 23% 19%) | |
| OKLCH | oklch(0.5604 0.155 260.49) | color: oklch(0.5604 0.155 260.49) | |
| Lab | lab(48.5 13.52 -53.4) | color: lab(48.5 13.52 -53.4) | |
| LCH | lch(48.5 55.08 284.21) | color: lch(48.5 55.08 284.21) |
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)
#5253B7 — rgb(82, 83, 183)
Deuteranopia (Green-blind)
#4F4BB2 — rgb(79, 75, 178)
Tritanopia (Blue-blind)
#3EA6A2 — rgb(62, 166, 162)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(218, 60%, 52%);
text
color: hsl(218, 60%, 52%);
border
border: 2px solid hsl(218, 60%, 52%);
gradient light
background: linear-gradient(to right, hsl(218, 60%, 72%), hsl(218, 60%, 52%));
gradient dark
background: linear-gradient(to right, hsl(218, 60%, 52%), hsl(218, 60%, 32%))
hex
background-color: #3B71CE;
tailwind
bg-[hsl(218,60%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(218, 60%, 52%, 0.4);
css variable
--color-primary: hsl(218, 60%, 52%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(218, 60%, 52%)?
HEX: #3B71CE | RGB: rgb(59, 113, 206) | CMYK: 71%, 45%, 0%, 19% | HSV: 218°, 71%, 81%. Copy any format from the conversion table above.
What colors go well with #3B71CE?
The complementary color is HSL(38, 60%, 52%). For a triadic harmony, use hues 218°, 338°, and 98°. For analogous combinations, try hues 188° and 248°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(218, 60%, 52%) in CSS?
As HSL: color: hsl(218, 60%, 52%); — As HEX: color: #3B71CE; — As RGB: color: rgb(59, 113, 206); — Tailwind CSS: bg-[hsl(218,60%,52%)] — CSS variable: --color-primary: hsl(218, 60%, 52%);