HSL(232, 68%, 18%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(232,68%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(232, 68%, 18%) | color: hsl(232, 68%, 18%) | |
| HEX | #0F174D | color: #0F174D | |
| RGB | rgb(15, 23, 77) | color: rgb(15, 23, 77) | |
| CMYK | cmyk(81%, 70%, 0%, 70%) | — | |
| HSV | hsv(232, 81%, 30%) | — | |
| HWB | hwb(232 6% 70%) | color: hwb(232 6% 70%) | |
| OKLCH | oklch(0.2393 0.0992 270.34) | color: oklch(0.2393 0.0992 270.34) | |
| Lab | lab(10.92 18.28 -34.33) | color: lab(10.92 18.28 -34.33) | |
| LCH | lch(10.92 38.89 298.03) | color: lch(10.92 38.89 298.03) |
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)
#121340 — rgb(18, 19, 64)
Deuteranopia (Green-blind)
#12113D — rgb(18, 17, 61)
Tritanopia (Blue-blind)
#0F3633 — rgb(15, 54, 51)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(232, 68%, 18%);
text
color: hsl(232, 68%, 18%);
border
border: 2px solid hsl(232, 68%, 18%);
gradient light
background: linear-gradient(to right, hsl(232, 68%, 38%), hsl(232, 68%, 18%));
gradient dark
background: linear-gradient(to right, hsl(232, 68%, 18%), hsl(232, 68%, 0%))
hex
background-color: #0F174D;
tailwind
bg-[hsl(232,68%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(232, 68%, 18%, 0.4);
css variable
--color-primary: hsl(232, 68%, 18%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(232, 68%, 18%)?
HEX: #0F174D | RGB: rgb(15, 23, 77) | CMYK: 81%, 70%, 0%, 70% | HSV: 232°, 81%, 30%. Copy any format from the conversion table above.
What colors go well with #0F174D?
The complementary color is HSL(52, 68%, 18%). For a triadic harmony, use hues 232°, 352°, and 112°. For analogous combinations, try hues 202° and 262°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(232, 68%, 18%) in CSS?
As HSL: color: hsl(232, 68%, 18%); — As HEX: color: #0F174D; — As RGB: color: rgb(15, 23, 77); — Tailwind CSS: bg-[hsl(232,68%,18%)] — CSS variable: --color-primary: hsl(232, 68%, 18%);