HSL(238, 94%, 60%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(238,94%,60%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(238, 94%, 60%) | color: hsl(238, 94%, 60%) | |
| HEX | #3940F9 | color: #3940F9 | |
| RGB | rgb(57, 64, 249) | color: rgb(57, 64, 249) | |
| CMYK | cmyk(77%, 74%, 0%, 2%) | — | |
| HSV | hsv(238, 77%, 98%) | — | |
| HWB | hwb(238 23% 2%) | color: hwb(238 23% 2%) | |
| OKLCH | oklch(0.5091 0.2644 270.62) | color: oklch(0.5091 0.2644 270.62) | |
| Lab | lab(40.2 58.15 -91.29) | color: lab(40.2 58.15 -91.29) | |
| LCH | lch(40.2 108.24 302.5) | color: lch(40.2 108.24 302.5) |
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)
#3C3CCC — rgb(60, 60, 204)
Deuteranopia (Green-blind)
#3C3BC2 — rgb(60, 59, 194)
Tritanopia (Blue-blind)
#39A9A1 — rgb(57, 169, 161)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(238, 94%, 60%);
text
color: hsl(238, 94%, 60%);
border
border: 2px solid hsl(238, 94%, 60%);
gradient light
background: linear-gradient(to right, hsl(238, 94%, 80%), hsl(238, 94%, 60%));
gradient dark
background: linear-gradient(to right, hsl(238, 94%, 60%), hsl(238, 94%, 40%))
hex
background-color: #3940F9;
tailwind
bg-[hsl(238,94%,60%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(238, 94%, 60%, 0.4);
css variable
--color-primary: hsl(238, 94%, 60%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(238, 94%, 60%)?
HEX: #3940F9 | RGB: rgb(57, 64, 249) | CMYK: 77%, 74%, 0%, 2% | HSV: 238°, 77%, 98%. Copy any format from the conversion table above.
What colors go well with #3940F9?
The complementary color is HSL(58, 94%, 60%). For a triadic harmony, use hues 238°, 358°, and 118°. For analogous combinations, try hues 208° and 268°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(238, 94%, 60%) in CSS?
As HSL: color: hsl(238, 94%, 60%); — As HEX: color: #3940F9; — As RGB: color: rgb(57, 64, 249); — Tailwind CSS: bg-[hsl(238,94%,60%)] — CSS variable: --color-primary: hsl(238, 94%, 60%);