HSL(218, 71%, 36%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(218,71%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(218, 71%, 36%) | color: hsl(218, 71%, 36%) | |
| HEX | #1B4A9D | color: #1B4A9D | |
| RGB | rgb(27, 74, 157) | color: rgb(27, 74, 157) | |
| CMYK | cmyk(83%, 53%, 0%, 38%) | — | |
| HSV | hsv(218, 83%, 62%) | — | |
| HWB | hwb(218 11% 38%) | color: hwb(218 11% 38%) | |
| OKLCH | oklch(0.4284 0.1448 260.85) | color: oklch(0.4284 0.1448 260.85) | |
| Lab | lab(33.06 16.31 -49.6) | color: lab(33.06 16.31 -49.6) | |
| LCH | lch(33.06 52.21 288.2) | color: lch(33.06 52.21 288.2) |
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)
#2F3089 — rgb(47, 48, 137)
Deuteranopia (Green-blind)
#2D2984 — rgb(45, 41, 132)
Tritanopia (Blue-blind)
#1D7976 — rgb(29, 121, 118)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(218, 71%, 36%);
text
color: hsl(218, 71%, 36%);
border
border: 2px solid hsl(218, 71%, 36%);
gradient light
background: linear-gradient(to right, hsl(218, 71%, 56%), hsl(218, 71%, 36%));
gradient dark
background: linear-gradient(to right, hsl(218, 71%, 36%), hsl(218, 71%, 16%))
hex
background-color: #1B4A9D;
tailwind
bg-[hsl(218,71%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(218, 71%, 36%, 0.4);
css variable
--color-primary: hsl(218, 71%, 36%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(218, 71%, 36%)?
HEX: #1B4A9D | RGB: rgb(27, 74, 157) | CMYK: 83%, 53%, 0%, 38% | HSV: 218°, 83%, 62%. Copy any format from the conversion table above.
What colors go well with #1B4A9D?
The complementary color is HSL(38, 71%, 36%). For a triadic harmony, use hues 218°, 338°, and 98°. For analogous combinations, try hues 188° and 248°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(218, 71%, 36%) in CSS?
As HSL: color: hsl(218, 71%, 36%); — As HEX: color: #1B4A9D; — As RGB: color: rgb(27, 74, 157); — Tailwind CSS: bg-[hsl(218,71%,36%)] — CSS variable: --color-primary: hsl(218, 71%, 36%);