HSL(211, 65%, 45%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(211,65%,45%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(211, 65%, 45%) | color: hsl(211, 65%, 45%) | |
| HEX | #2870BD | color: #2870BD | |
| RGB | rgb(40, 112, 189) | color: rgb(40, 112, 189) | |
| CMYK | cmyk(79%, 41%, 0%, 26%) | — | |
| HSV | hsv(211, 79%, 74%) | — | |
| HWB | hwb(211 16% 26%) | color: hwb(211 16% 26%) | |
| OKLCH | oklch(0.5406 0.1395 253.17) | color: oklch(0.5406 0.1395 253.17) | |
| Lab | lab(46.59 5.42 -46.72) | color: lab(46.59 5.42 -46.72) | |
| LCH | lch(46.59 47.03 276.62) | color: lch(46.59 47.03 276.62) |
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)
#4748AA — rgb(71, 72, 170)
Deuteranopia (Green-blind)
#433EA6 — rgb(67, 62, 166)
Tritanopia (Blue-blind)
#2C9C98 — rgb(44, 156, 152)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(211, 65%, 45%);
text
color: hsl(211, 65%, 45%);
border
border: 2px solid hsl(211, 65%, 45%);
gradient light
background: linear-gradient(to right, hsl(211, 65%, 65%), hsl(211, 65%, 45%));
gradient dark
background: linear-gradient(to right, hsl(211, 65%, 45%), hsl(211, 65%, 25%))
hex
background-color: #2870BD;
tailwind
bg-[hsl(211,65%,45%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(211, 65%, 45%, 0.4);
css variable
--color-primary: hsl(211, 65%, 45%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(211, 65%, 45%)?
HEX: #2870BD | RGB: rgb(40, 112, 189) | CMYK: 79%, 41%, 0%, 26% | HSV: 211°, 79%, 74%. Copy any format from the conversion table above.
What colors go well with #2870BD?
The complementary color is HSL(31, 65%, 45%). For a triadic harmony, use hues 211°, 331°, and 91°. For analogous combinations, try hues 181° and 241°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(211, 65%, 45%) in CSS?
As HSL: color: hsl(211, 65%, 45%); — As HEX: color: #2870BD; — As RGB: color: rgb(40, 112, 189); — Tailwind CSS: bg-[hsl(211,65%,45%)] — CSS variable: --color-primary: hsl(211, 65%, 45%);