HSL(221, 87%, 37%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(221,87%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(221, 87%, 37%) | color: hsl(221, 87%, 37%) | |
| HEX | #0C40B0 | color: #0C40B0 | |
| RGB | rgb(12, 64, 176) | color: rgb(12, 64, 176) | |
| CMYK | cmyk(93%, 64%, 0%, 31%) | — | |
| HSV | hsv(221, 93%, 69%) | — | |
| HWB | hwb(221 5% 31%) | color: hwb(221 5% 31%) | |
| OKLCH | oklch(0.4207 0.1856 262.71) | color: oklch(0.4207 0.1856 262.71) | |
| Lab | lab(31.53 29.74 -63.5) | color: lab(31.53 29.74 -63.5) | |
| LCH | lch(31.53 70.12 295.1) | color: lch(31.53 70.12 295.1) |
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)
#232395 — rgb(35, 35, 149)
Deuteranopia (Green-blind)
#201C8E — rgb(32, 28, 142)
Tritanopia (Blue-blind)
#0F807B — rgb(15, 128, 123)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(221, 87%, 37%);
text
color: hsl(221, 87%, 37%);
border
border: 2px solid hsl(221, 87%, 37%);
gradient light
background: linear-gradient(to right, hsl(221, 87%, 57%), hsl(221, 87%, 37%));
gradient dark
background: linear-gradient(to right, hsl(221, 87%, 37%), hsl(221, 87%, 17%))
hex
background-color: #0C40B0;
tailwind
bg-[hsl(221,87%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(221, 87%, 37%, 0.4);
css variable
--color-primary: hsl(221, 87%, 37%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(221, 87%, 37%)?
HEX: #0C40B0 | RGB: rgb(12, 64, 176) | CMYK: 93%, 64%, 0%, 31% | HSV: 221°, 93%, 69%. Copy any format from the conversion table above.
What colors go well with #0C40B0?
The complementary color is HSL(41, 87%, 37%). For a triadic harmony, use hues 221°, 341°, and 101°. For analogous combinations, try hues 191° and 251°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(221, 87%, 37%) in CSS?
As HSL: color: hsl(221, 87%, 37%); — As HEX: color: #0C40B0; — As RGB: color: rgb(12, 64, 176); — Tailwind CSS: bg-[hsl(221,87%,37%)] — CSS variable: --color-primary: hsl(221, 87%, 37%);