HSL(250, 42%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(250,42%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(250, 42%, 28%) | color: hsl(250, 42%, 28%) | |
| HEX | #332965 | color: #332965 | |
| RGB | rgb(51, 41, 101) | color: rgb(51, 41, 101) | |
| CMYK | cmyk(50%, 59%, 0%, 60%) | — | |
| HSV | hsv(250, 59%, 40%) | — | |
| HWB | hwb(250 16% 60%) | color: hwb(250 16% 60%) | |
| OKLCH | oklch(0.3274 0.1015 287.05) | color: oklch(0.3274 0.1015 287.05) | |
| Lab | lab(20.94 21.75 -34.02) | color: lab(20.94 21.75 -34.02) | |
| LCH | lch(20.94 40.38 302.59) | color: lch(20.94 40.38 302.59) |
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)
#2F2F56 — rgb(47, 47, 86)
Deuteranopia (Green-blind)
#2F3053 — rgb(47, 48, 83)
Tritanopia (Blue-blind)
#334B49 — rgb(51, 75, 73)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(250, 42%, 28%);
text
color: hsl(250, 42%, 28%);
border
border: 2px solid hsl(250, 42%, 28%);
gradient light
background: linear-gradient(to right, hsl(250, 42%, 48%), hsl(250, 42%, 28%));
gradient dark
background: linear-gradient(to right, hsl(250, 42%, 28%), hsl(250, 42%, 8%))
hex
background-color: #332965;
tailwind
bg-[hsl(250,42%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(250, 42%, 28%, 0.4);
css variable
--color-primary: hsl(250, 42%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(250, 42%, 28%)?
HEX: #332965 | RGB: rgb(51, 41, 101) | CMYK: 50%, 59%, 0%, 60% | HSV: 250°, 59%, 40%. Copy any format from the conversion table above.
What colors go well with #332965?
The complementary color is HSL(70, 42%, 28%). 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%, 28%) in CSS?
As HSL: color: hsl(250, 42%, 28%); — As HEX: color: #332965; — As RGB: color: rgb(51, 41, 101); — Tailwind CSS: bg-[hsl(250,42%,28%)] — CSS variable: --color-primary: hsl(250, 42%, 28%);