HSL(242, 78%, 59%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,78%,59%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 78%, 59%) | color: hsl(242, 78%, 59%) | |
| HEX | #4A45E8 | color: #4A45E8 | |
| RGB | rgb(74, 69, 232) | color: rgb(74, 69, 232) | |
| CMYK | cmyk(68%, 70%, 0%, 9%) | — | |
| HSV | hsv(242, 70%, 91%) | — | |
| HWB | hwb(242 27% 9%) | color: hwb(242 27% 9%) | |
| OKLCH | oklch(0.5087 0.2358 275.35) | color: oklch(0.5087 0.2358 275.35) | |
| Lab | lab(40.47 51.56 -81.23) | color: lab(40.47 51.56 -81.23) | |
| LCH | lch(40.47 96.21 302.4) | color: lch(40.47 96.21 302.4) |
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)
#4848C1 — rgb(72, 72, 193)
Deuteranopia (Green-blind)
#4849B7 — rgb(72, 73, 183)
Tritanopia (Blue-blind)
#4AA19B — rgb(74, 161, 155)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 78%, 59%);
text
color: hsl(242, 78%, 59%);
border
border: 2px solid hsl(242, 78%, 59%);
gradient light
background: linear-gradient(to right, hsl(242, 78%, 79%), hsl(242, 78%, 59%));
gradient dark
background: linear-gradient(to right, hsl(242, 78%, 59%), hsl(242, 78%, 39%))
hex
background-color: #4A45E8;
tailwind
bg-[hsl(242,78%,59%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 78%, 59%, 0.4);
css variable
--color-primary: hsl(242, 78%, 59%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 78%, 59%)?
HEX: #4A45E8 | RGB: rgb(74, 69, 232) | CMYK: 68%, 70%, 0%, 9% | HSV: 242°, 70%, 91%. Copy any format from the conversion table above.
What colors go well with #4A45E8?
The complementary color is HSL(62, 78%, 59%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 78%, 59%) in CSS?
As HSL: color: hsl(242, 78%, 59%); — As HEX: color: #4A45E8; — As RGB: color: rgb(74, 69, 232); — Tailwind CSS: bg-[hsl(242,78%,59%)] — CSS variable: --color-primary: hsl(242, 78%, 59%);