HSL(212, 87%, 40%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(212,87%,40%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(212, 87%, 40%) | color: hsl(212, 87%, 40%) | |
| HEX | #0D60BF | color: #0D60BF | |
| RGB | rgb(13, 96, 191) | color: rgb(13, 96, 191) | |
| CMYK | cmyk(93%, 50%, 0%, 25%) | — | |
| HSV | hsv(212, 93%, 75%) | — | |
| HWB | hwb(212 5% 25%) | color: hwb(212 5% 25%) | |
| OKLCH | oklch(0.5004 0.1661 256.45) | color: oklch(0.5004 0.1661 256.45) | |
| Lab | lab(41.55 14.41 -56.01) | color: lab(41.55 14.41 -56.01) | |
| LCH | lch(41.55 57.83 284.43) | color: lch(41.55 57.83 284.43) |
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)
#3132A8 — rgb(49, 50, 168)
Deuteranopia (Green-blind)
#2C26A3 — rgb(44, 38, 163)
Tritanopia (Blue-blind)
#119692 — rgb(17, 150, 146)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(212, 87%, 40%);
text
color: hsl(212, 87%, 40%);
border
border: 2px solid hsl(212, 87%, 40%);
gradient light
background: linear-gradient(to right, hsl(212, 87%, 60%), hsl(212, 87%, 40%));
gradient dark
background: linear-gradient(to right, hsl(212, 87%, 40%), hsl(212, 87%, 20%))
hex
background-color: #0D60BF;
tailwind
bg-[hsl(212,87%,40%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(212, 87%, 40%, 0.4);
css variable
--color-primary: hsl(212, 87%, 40%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(212, 87%, 40%)?
HEX: #0D60BF | RGB: rgb(13, 96, 191) | CMYK: 93%, 50%, 0%, 25% | HSV: 212°, 93%, 75%. Copy any format from the conversion table above.
What colors go well with #0D60BF?
The complementary color is HSL(32, 87%, 40%). For a triadic harmony, use hues 212°, 332°, and 92°. For analogous combinations, try hues 182° and 242°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(212, 87%, 40%) in CSS?
As HSL: color: hsl(212, 87%, 40%); — As HEX: color: #0D60BF; — As RGB: color: rgb(13, 96, 191); — Tailwind CSS: bg-[hsl(212,87%,40%)] — CSS variable: --color-primary: hsl(212, 87%, 40%);