HSL(248, 65%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,65%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 65%, 28%) | color: hsl(248, 65%, 28%) | |
| HEX | #251976 | color: #251976 | |
| RGB | rgb(37, 25, 118) | color: rgb(37, 25, 118) | |
| CMYK | cmyk(69%, 79%, 0%, 54%) | — | |
| HSV | hsv(248, 79%, 46%) | — | |
| HWB | hwb(248 10% 54%) | color: hwb(248 10% 54%) | |
| OKLCH | oklch(0.3037 0.1484 278.66) | color: oklch(0.3037 0.1484 278.66) | |
| Lab | lab(17.44 35.1 -50.81) | color: lab(17.44 35.1 -50.81) | |
| LCH | lch(17.44 61.75 304.64) | color: lch(17.44 61.75 304.64) |
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)
#20205F — rgb(32, 32, 95)
Deuteranopia (Green-blind)
#21215A — rgb(33, 33, 90)
Tritanopia (Blue-blind)
#244E4A — rgb(36, 78, 74)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 65%, 28%);
text
color: hsl(248, 65%, 28%);
border
border: 2px solid hsl(248, 65%, 28%);
gradient light
background: linear-gradient(to right, hsl(248, 65%, 48%), hsl(248, 65%, 28%));
gradient dark
background: linear-gradient(to right, hsl(248, 65%, 28%), hsl(248, 65%, 8%))
hex
background-color: #251976;
tailwind
bg-[hsl(248,65%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 65%, 28%, 0.4);
css variable
--color-primary: hsl(248, 65%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 65%, 28%)?
HEX: #251976 | RGB: rgb(37, 25, 118) | CMYK: 69%, 79%, 0%, 54% | HSV: 248°, 79%, 46%. Copy any format from the conversion table above.
What colors go well with #251976?
The complementary color is HSL(68, 65%, 28%). 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, 65%, 28%) in CSS?
As HSL: color: hsl(248, 65%, 28%); — As HEX: color: #251976; — As RGB: color: rgb(37, 25, 118); — Tailwind CSS: bg-[hsl(248,65%,28%)] — CSS variable: --color-primary: hsl(248, 65%, 28%);