HSL(216, 89%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(216,89%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(216, 89%, 40%) | color: hsl(216, 89%, 40%) | |
| HEX | #0B54C1 | color: #0B54C1 | |
| RGB | rgb(11, 84, 193) | color: rgb(11, 84, 193) | |
| CMYK | cmyk(94%, 56%, 0%, 24%) | — | |
| HSV | hsv(216, 94%, 76%) | — | |
| HWB | hwb(216 5% 24%) | color: hwb(216 5% 24%) | |
| OKLCH | oklch(0.476 0.1835 259.89) | color: oklch(0.476 0.1835 259.89) | |
| Lab | lab(38.31 23.08 -62.44) | color: lab(38.31 23.08 -62.44) | |
| LCH | lch(38.31 66.57 290.29) | color: lch(38.31 66.57 290.29) |
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)
#2B2BA7 — rgb(43, 43, 167)
Deuteranopia (Green-blind)
#2621A0 — rgb(38, 33, 160)
Tritanopia (Blue-blind)
#0F928D — rgb(15, 146, 141)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(216, 89%, 40%);
text
color: hsl(216, 89%, 40%);
border
border: 2px solid hsl(216, 89%, 40%);
gradient light
background: linear-gradient(to right, hsl(216, 89%, 60%), hsl(216, 89%, 40%));
gradient dark
background: linear-gradient(to right, hsl(216, 89%, 40%), hsl(216, 89%, 20%))
hex
background-color: #0B54C1;
tailwind
bg-[hsl(216,89%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(216, 89%, 40%, 0.4);
css variable
--color-primary: hsl(216, 89%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(216, 89%, 40%)?
HEX: #0B54C1 | RGB: rgb(11, 84, 193) | CMYK: 94%, 56%, 0%, 24% | HSV: 216°, 94%, 76%. Copy any format from the conversion table above.
What colors go well with #0B54C1?
The complementary color is HSL(36, 89%, 40%). For a triadic harmony, use hues 216°, 336°, and 96°. For analogous combinations, try hues 186° and 246°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(216, 89%, 40%) in CSS?
As HSL: color: hsl(216, 89%, 40%); — As HEX: color: #0B54C1; — As RGB: color: rgb(11, 84, 193); — Tailwind CSS: bg-[hsl(216,89%,40%)] — CSS variable: --color-primary: hsl(216, 89%, 40%);