HSL(203, 50%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
7000K
CSS Class
bg-[hsl(203,50%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(203, 50%, 21%) | color: hsl(203, 50%, 21%) | |
| HEX | #1B3C50 | color: #1B3C50 | |
| RGB | rgb(27, 60, 80) | color: rgb(27, 60, 80) | |
| CMYK | cmyk(66%, 25%, 0%, 69%) | — | |
| HSV | hsv(203, 66%, 31%) | — | |
| HWB | hwb(203 11% 69%) | color: hwb(203 11% 69%) | |
| OKLCH | oklch(0.341 0.0523 237.6) | color: oklch(0.341 0.0523 237.6) | |
| Lab | lab(23.81 -5.03 -15.75) | color: lab(23.81 -5.03 -15.75) | |
| LCH | lch(23.81 16.53 252.29) | color: lch(23.81 16.53 252.29) |
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)
#292A4B — rgb(41, 42, 75)
Deuteranopia (Green-blind)
#27254A — rgb(39, 37, 74)
Tritanopia (Blue-blind)
#1D4747 — rgb(29, 71, 71)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(203, 50%, 21%);
text
color: hsl(203, 50%, 21%);
border
border: 2px solid hsl(203, 50%, 21%);
gradient light
background: linear-gradient(to right, hsl(203, 50%, 41%), hsl(203, 50%, 21%));
gradient dark
background: linear-gradient(to right, hsl(203, 50%, 21%), hsl(203, 50%, 1%))
hex
background-color: #1B3C50;
tailwind
bg-[hsl(203,50%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(203, 50%, 21%, 0.4);
css variable
--color-primary: hsl(203, 50%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(203, 50%, 21%)?
HEX: #1B3C50 | RGB: rgb(27, 60, 80) | CMYK: 66%, 25%, 0%, 69% | HSV: 203°, 66%, 31%. Copy any format from the conversion table above.
What colors go well with #1B3C50?
The complementary color is HSL(23, 50%, 21%). For a triadic harmony, use hues 203°, 323°, and 83°. For analogous combinations, try hues 173° and 233°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(203, 50%, 21%) in CSS?
As HSL: color: hsl(203, 50%, 21%); — As HEX: color: #1B3C50; — As RGB: color: rgb(27, 60, 80); — Tailwind CSS: bg-[hsl(203,50%,21%)] — CSS variable: --color-primary: hsl(203, 50%, 21%);