HSL(248, 70%, 32%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,70%,32%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 70%, 32%) | color: hsl(248, 70%, 32%) | |
| HEX | #28188B | color: #28188B | |
| RGB | rgb(40, 24, 139) | color: rgb(40, 24, 139) | |
| CMYK | cmyk(71%, 83%, 0%, 45%) | — | |
| HSV | hsv(248, 83%, 55%) | — | |
| HWB | hwb(248 9% 45%) | color: hwb(248 9% 45%) | |
| OKLCH | oklch(0.3287 0.1748 277.04) | color: oklch(0.3287 0.1748 277.04) | |
| Lab | lab(19.91 42.72 -60.03) | color: lab(19.91 42.72 -60.03) | |
| LCH | lch(19.91 73.68 305.44) | color: lch(19.91 73.68 305.44) |
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)
#21216F — rgb(33, 33, 111)
Deuteranopia (Green-blind)
#222369 — rgb(34, 35, 105)
Tritanopia (Blue-blind)
#275954 — rgb(39, 89, 84)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 70%, 32%);
text
color: hsl(248, 70%, 32%);
border
border: 2px solid hsl(248, 70%, 32%);
gradient light
background: linear-gradient(to right, hsl(248, 70%, 52%), hsl(248, 70%, 32%));
gradient dark
background: linear-gradient(to right, hsl(248, 70%, 32%), hsl(248, 70%, 12%))
hex
background-color: #28188B;
tailwind
bg-[hsl(248,70%,32%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 70%, 32%, 0.4);
css variable
--color-primary: hsl(248, 70%, 32%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 70%, 32%)?
HEX: #28188B | RGB: rgb(40, 24, 139) | CMYK: 71%, 83%, 0%, 45% | HSV: 248°, 83%, 55%. Copy any format from the conversion table above.
What colors go well with #28188B?
The complementary color is HSL(68, 70%, 32%). 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, 70%, 32%) in CSS?
As HSL: color: hsl(248, 70%, 32%); — As HEX: color: #28188B; — As RGB: color: rgb(40, 24, 139); — Tailwind CSS: bg-[hsl(248,70%,32%)] — CSS variable: --color-primary: hsl(248, 70%, 32%);