HSL(254, 75%, 41%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(254,75%,41%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(254, 75%, 41%) | color: hsl(254, 75%, 41%) | |
| HEX | #3F1AB7 | color: #3F1AB7 | |
| RGB | rgb(63, 26, 183) | color: rgb(63, 26, 183) | |
| CMYK | cmyk(66%, 86%, 0%, 28%) | — | |
| HSV | hsv(254, 86%, 72%) | — | |
| HWB | hwb(254 10% 28%) | color: hwb(254 10% 28%) | |
| OKLCH | oklch(0.3996 0.2188 280.75) | color: oklch(0.3996 0.2188 280.75) | |
| Lab | lab(27.33 56.61 -74.5) | color: lab(27.33 56.61 -74.5) | |
| LCH | lch(27.33 93.57 307.23) | color: lch(27.33 93.57 307.23) |
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)
#2F2F91 — rgb(47, 47, 145)
Deuteranopia (Green-blind)
#313488 — rgb(49, 52, 136)
Tritanopia (Blue-blind)
#3D736C — rgb(61, 115, 108)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(254, 75%, 41%);
text
color: hsl(254, 75%, 41%);
border
border: 2px solid hsl(254, 75%, 41%);
gradient light
background: linear-gradient(to right, hsl(254, 75%, 61%), hsl(254, 75%, 41%));
gradient dark
background: linear-gradient(to right, hsl(254, 75%, 41%), hsl(254, 75%, 21%))
hex
background-color: #3F1AB7;
tailwind
bg-[hsl(254,75%,41%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(254, 75%, 41%, 0.4);
css variable
--color-primary: hsl(254, 75%, 41%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(254, 75%, 41%)?
HEX: #3F1AB7 | RGB: rgb(63, 26, 183) | CMYK: 66%, 86%, 0%, 28% | HSV: 254°, 86%, 72%. Copy any format from the conversion table above.
What colors go well with #3F1AB7?
The complementary color is HSL(74, 75%, 41%). For a triadic harmony, use hues 254°, 14°, and 134°. For analogous combinations, try hues 224° and 284°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(254, 75%, 41%) in CSS?
As HSL: color: hsl(254, 75%, 41%); — As HEX: color: #3F1AB7; — As RGB: color: rgb(63, 26, 183); — Tailwind CSS: bg-[hsl(254,75%,41%)] — CSS variable: --color-primary: hsl(254, 75%, 41%);