HSL(248, 76%, 35%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,76%,35%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 76%, 35%) | color: hsl(248, 76%, 35%) | |
| HEX | #28159D | color: #28159D | |
| RGB | rgb(40, 21, 157) | color: rgb(40, 21, 157) | |
| CMYK | cmyk(75%, 87%, 0%, 38%) | — | |
| HSV | hsv(248, 87%, 62%) | — | |
| HWB | hwb(248 8% 38%) | color: hwb(248 8% 38%) | |
| OKLCH | oklch(0.347 0.1981 274.9) | color: oklch(0.347 0.1981 274.9) | |
| Lab | lab(21.66 49.51 -68.28) | color: lab(21.66 49.51 -68.28) | |
| LCH | lch(21.66 84.34 305.95) | color: lch(21.66 84.34 305.95) |
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)
#20207C — rgb(32, 32, 124)
Deuteranopia (Green-blind)
#212274 — rgb(33, 34, 116)
Tritanopia (Blue-blind)
#27625C — rgb(39, 98, 92)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 76%, 35%);
text
color: hsl(248, 76%, 35%);
border
border: 2px solid hsl(248, 76%, 35%);
gradient light
background: linear-gradient(to right, hsl(248, 76%, 55%), hsl(248, 76%, 35%));
gradient dark
background: linear-gradient(to right, hsl(248, 76%, 35%), hsl(248, 76%, 15%))
hex
background-color: #28159D;
tailwind
bg-[hsl(248,76%,35%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 76%, 35%, 0.4);
css variable
--color-primary: hsl(248, 76%, 35%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 76%, 35%)?
HEX: #28159D | RGB: rgb(40, 21, 157) | CMYK: 75%, 87%, 0%, 38% | HSV: 248°, 87%, 62%. Copy any format from the conversion table above.
What colors go well with #28159D?
The complementary color is HSL(68, 76%, 35%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 76%, 35%) in CSS?
As HSL: color: hsl(248, 76%, 35%); — As HEX: color: #28159D; — As RGB: color: rgb(40, 21, 157); — Tailwind CSS: bg-[hsl(248,76%,35%)] — CSS variable: --color-primary: hsl(248, 76%, 35%);