HSL(213, 80%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(213,80%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(213, 80%, 21%) | color: hsl(213, 80%, 21%) | |
| HEX | #0B3160 | color: #0B3160 | |
| RGB | rgb(11, 49, 96) | color: rgb(11, 49, 96) | |
| CMYK | cmyk(89%, 49%, 0%, 62%) | — | |
| HSV | hsv(213, 89%, 38%) | — | |
| HWB | hwb(213 4% 62%) | color: hwb(213 4% 62%) | |
| OKLCH | oklch(0.3164 0.0935 256.16) | color: oklch(0.3164 0.0935 256.16) | |
| Lab | lab(20.49 6.61 -31.6) | color: lab(20.49 6.61 -31.6) | |
| LCH | lch(20.49 32.28 281.81) | color: lch(20.49 32.28 281.81) |
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)
#1B1C55 — rgb(27, 28, 85)
Deuteranopia (Green-blind)
#191652 — rgb(25, 22, 82)
Tritanopia (Blue-blind)
#0D4C4A — rgb(13, 76, 74)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(213, 80%, 21%);
text
color: hsl(213, 80%, 21%);
border
border: 2px solid hsl(213, 80%, 21%);
gradient light
background: linear-gradient(to right, hsl(213, 80%, 41%), hsl(213, 80%, 21%));
gradient dark
background: linear-gradient(to right, hsl(213, 80%, 21%), hsl(213, 80%, 1%))
hex
background-color: #0B3160;
tailwind
bg-[hsl(213,80%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(213, 80%, 21%, 0.4);
css variable
--color-primary: hsl(213, 80%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(213, 80%, 21%)?
HEX: #0B3160 | RGB: rgb(11, 49, 96) | CMYK: 89%, 49%, 0%, 62% | HSV: 213°, 89%, 38%. Copy any format from the conversion table above.
What colors go well with #0B3160?
The complementary color is HSL(33, 80%, 21%). 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, 80%, 21%) in CSS?
As HSL: color: hsl(213, 80%, 21%); — As HEX: color: #0B3160; — As RGB: color: rgb(11, 49, 96); — Tailwind CSS: bg-[hsl(213,80%,21%)] — CSS variable: --color-primary: hsl(213, 80%, 21%);