HSL(250, 42%, 18%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(250,42%,18%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(250, 42%, 18%) | color: hsl(250, 42%, 18%) | |
| HEX | #211B41 | color: #211B41 | |
| RGB | rgb(33, 27, 65) | color: rgb(33, 27, 65) | |
| CMYK | cmyk(49%, 58%, 0%, 75%) | — | |
| HSV | hsv(249, 58%, 25%) | — | |
| HWB | hwb(249 11% 75%) | color: hwb(249 11% 75%) | |
| OKLCH | oklch(0.2519 0.0694 287.59) | color: oklch(0.2519 0.0694 287.59) | |
| Lab | lab(12.54 14.41 -23.28) | color: lab(12.54 14.41 -23.28) | |
| LCH | lch(12.54 27.38 301.76) | color: lch(12.54 27.38 301.76) |
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)
#1E1E38 — rgb(30, 30, 56)
Deuteranopia (Green-blind)
#1F1F36 — rgb(31, 31, 54)
Tritanopia (Blue-blind)
#21312F — rgb(33, 49, 47)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(250, 42%, 18%);
text
color: hsl(250, 42%, 18%);
border
border: 2px solid hsl(250, 42%, 18%);
gradient light
background: linear-gradient(to right, hsl(250, 42%, 38%), hsl(250, 42%, 18%));
gradient dark
background: linear-gradient(to right, hsl(250, 42%, 18%), hsl(250, 42%, 0%))
hex
background-color: #211B41;
tailwind
bg-[hsl(250,42%,18%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(250, 42%, 18%, 0.4);
css variable
--color-primary: hsl(250, 42%, 18%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(250, 42%, 18%)?
HEX: #211B41 | RGB: rgb(33, 27, 65) | CMYK: 49%, 58%, 0%, 75% | HSV: 249°, 58%, 25%. Copy any format from the conversion table above.
What colors go well with #211B41?
The complementary color is HSL(70, 42%, 18%). For a triadic harmony, use hues 250°, 10°, and 130°. For analogous combinations, try hues 220° and 280°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(250, 42%, 18%) in CSS?
As HSL: color: hsl(250, 42%, 18%); — As HEX: color: #211B41; — As RGB: color: rgb(33, 27, 65); — Tailwind CSS: bg-[hsl(250,42%,18%)] — CSS variable: --color-primary: hsl(250, 42%, 18%);