HSL(213, 67%, 18%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(213,67%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(213, 67%, 18%) | color: hsl(213, 67%, 18%) | |
| HEX | #0F2B4D | color: #0F2B4D | |
| RGB | rgb(15, 43, 77) | color: rgb(15, 43, 77) | |
| CMYK | cmyk(81%, 44%, 0%, 70%) | — | |
| HSV | hsv(213, 81%, 30%) | — | |
| HWB | hwb(213 6% 70%) | color: hwb(213 6% 70%) | |
| OKLCH | oklch(0.2877 0.071 254.96) | color: oklch(0.2877 0.071 254.96) | |
| Lab | lab(17.3 3.17 -24.03) | color: lab(17.3 3.17 -24.03) | |
| LCH | lch(17.3 24.24 277.51) | color: lch(17.3 24.24 277.51) |
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)
#1B1B45 — rgb(27, 27, 69)
Deuteranopia (Green-blind)
#1A1743 — rgb(26, 23, 67)
Tritanopia (Blue-blind)
#103E3D — rgb(16, 62, 61)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(213, 67%, 18%);
text
color: hsl(213, 67%, 18%);
border
border: 2px solid hsl(213, 67%, 18%);
gradient light
background: linear-gradient(to right, hsl(213, 67%, 38%), hsl(213, 67%, 18%));
gradient dark
background: linear-gradient(to right, hsl(213, 67%, 18%), hsl(213, 67%, 0%))
hex
background-color: #0F2B4D;
tailwind
bg-[hsl(213,67%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(213, 67%, 18%, 0.4);
css variable
--color-primary: hsl(213, 67%, 18%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(213, 67%, 18%)?
HEX: #0F2B4D | RGB: rgb(15, 43, 77) | CMYK: 81%, 44%, 0%, 70% | HSV: 213°, 81%, 30%. Copy any format from the conversion table above.
What colors go well with #0F2B4D?
The complementary color is HSL(33, 67%, 18%). For a triadic harmony, use hues 213°, 333°, and 93°. For analogous combinations, try hues 183° and 243°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(213, 67%, 18%) in CSS?
As HSL: color: hsl(213, 67%, 18%); — As HEX: color: #0F2B4D; — As RGB: color: rgb(15, 43, 77); — Tailwind CSS: bg-[hsl(213,67%,18%)] — CSS variable: --color-primary: hsl(213, 67%, 18%);