HSL(221, 67%, 18%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(221,67%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(221, 67%, 18%) | color: hsl(221, 67%, 18%) | |
| HEX | #0F234D | color: #0F234D | |
| RGB | rgb(15, 35, 77) | color: rgb(15, 35, 77) | |
| CMYK | cmyk(81%, 55%, 0%, 70%) | — | |
| HSV | hsv(221, 81%, 30%) | — | |
| HWB | hwb(221 6% 70%) | color: hwb(221 6% 70%) | |
| OKLCH | oklch(0.2671 0.082 262.92) | color: oklch(0.2671 0.082 262.92) | |
| Lab | lab(14.62 9.14 -28.32) | color: lab(14.62 9.14 -28.32) | |
| LCH | lch(14.62 29.76 287.89) | color: lch(14.62 29.76 287.89) |
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)
#181843 — rgb(24, 24, 67)
Deuteranopia (Green-blind)
#171540 — rgb(23, 21, 64)
Tritanopia (Blue-blind)
#103B39 — rgb(16, 59, 57)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(221, 67%, 18%);
text
color: hsl(221, 67%, 18%);
border
border: 2px solid hsl(221, 67%, 18%);
gradient light
background: linear-gradient(to right, hsl(221, 67%, 38%), hsl(221, 67%, 18%));
gradient dark
background: linear-gradient(to right, hsl(221, 67%, 18%), hsl(221, 67%, 0%))
hex
background-color: #0F234D;
tailwind
bg-[hsl(221,67%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(221, 67%, 18%, 0.4);
css variable
--color-primary: hsl(221, 67%, 18%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(221, 67%, 18%)?
HEX: #0F234D | RGB: rgb(15, 35, 77) | CMYK: 81%, 55%, 0%, 70% | HSV: 221°, 81%, 30%. Copy any format from the conversion table above.
What colors go well with #0F234D?
The complementary color is HSL(41, 67%, 18%). 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, 67%, 18%) in CSS?
As HSL: color: hsl(221, 67%, 18%); — As HEX: color: #0F234D; — As RGB: color: rgb(15, 35, 77); — Tailwind CSS: bg-[hsl(221,67%,18%)] — CSS variable: --color-primary: hsl(221, 67%, 18%);