HSL(248, 74%, 41%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,74%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 74%, 41%) | color: hsl(248, 74%, 41%) | |
| HEX | #301BB6 | color: #301BB6 | |
| RGB | rgb(48, 27, 182) | color: rgb(48, 27, 182) | |
| CMYK | cmyk(74%, 85%, 0%, 29%) | — | |
| HSV | hsv(248, 85%, 71%) | — | |
| HWB | hwb(248 11% 29%) | color: hwb(248 11% 29%) | |
| OKLCH | oklch(0.3879 0.2203 274.89) | color: oklch(0.3879 0.2203 274.89) | |
| Lab | lab(26.12 54.88 -75.95) | color: lab(26.12 54.88 -75.95) | |
| LCH | lch(26.12 93.7 305.85) | color: lch(26.12 93.7 305.85) |
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)
#272790 — rgb(39, 39, 144)
Deuteranopia (Green-blind)
#282A88 — rgb(40, 42, 136)
Tritanopia (Blue-blind)
#2F736C — rgb(47, 115, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 74%, 41%);
text
color: hsl(248, 74%, 41%);
border
border: 2px solid hsl(248, 74%, 41%);
gradient light
background: linear-gradient(to right, hsl(248, 74%, 61%), hsl(248, 74%, 41%));
gradient dark
background: linear-gradient(to right, hsl(248, 74%, 41%), hsl(248, 74%, 21%))
hex
background-color: #301BB6;
tailwind
bg-[hsl(248,74%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 74%, 41%, 0.4);
css variable
--color-primary: hsl(248, 74%, 41%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 74%, 41%)?
HEX: #301BB6 | RGB: rgb(48, 27, 182) | CMYK: 74%, 85%, 0%, 29% | HSV: 248°, 85%, 71%. Copy any format from the conversion table above.
What colors go well with #301BB6?
The complementary color is HSL(68, 74%, 41%). 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, 74%, 41%) in CSS?
As HSL: color: hsl(248, 74%, 41%); — As HEX: color: #301BB6; — As RGB: color: rgb(48, 27, 182); — Tailwind CSS: bg-[hsl(248,74%,41%)] — CSS variable: --color-primary: hsl(248, 74%, 41%);