HSL(231, 67%, 18%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(231,67%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(231, 67%, 18%) | color: hsl(231, 67%, 18%) | |
| HEX | #0F184D | color: #0F184D | |
| RGB | rgb(15, 24, 77) | color: rgb(15, 24, 77) | |
| CMYK | cmyk(81%, 69%, 0%, 70%) | — | |
| HSV | hsv(231, 81%, 30%) | — | |
| HWB | hwb(231 6% 70%) | color: hwb(231 6% 70%) | |
| OKLCH | oklch(0.2414 0.0978 269.89) | color: oklch(0.2414 0.0978 269.89) | |
| Lab | lab(11.21 17.53 -33.85) | color: lab(11.21 17.53 -33.85) | |
| LCH | lch(11.21 38.12 297.38) | color: lch(11.21 38.12 297.38) |
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)
#131340 — rgb(19, 19, 64)
Deuteranopia (Green-blind)
#12123D — rgb(18, 18, 61)
Tritanopia (Blue-blind)
#0F3634 — rgb(15, 54, 52)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(231, 67%, 18%);
text
color: hsl(231, 67%, 18%);
border
border: 2px solid hsl(231, 67%, 18%);
gradient light
background: linear-gradient(to right, hsl(231, 67%, 38%), hsl(231, 67%, 18%));
gradient dark
background: linear-gradient(to right, hsl(231, 67%, 18%), hsl(231, 67%, 0%))
hex
background-color: #0F184D;
tailwind
bg-[hsl(231,67%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(231, 67%, 18%, 0.4);
css variable
--color-primary: hsl(231, 67%, 18%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(231, 67%, 18%)?
HEX: #0F184D | RGB: rgb(15, 24, 77) | CMYK: 81%, 69%, 0%, 70% | HSV: 231°, 81%, 30%. Copy any format from the conversion table above.
What colors go well with #0F184D?
The complementary color is HSL(51, 67%, 18%). For a triadic harmony, use hues 231°, 351°, and 111°. For analogous combinations, try hues 201° and 261°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(231, 67%, 18%) in CSS?
As HSL: color: hsl(231, 67%, 18%); — As HEX: color: #0F184D; — As RGB: color: rgb(15, 24, 77); — Tailwind CSS: bg-[hsl(231,67%,18%)] — CSS variable: --color-primary: hsl(231, 67%, 18%);