HSL(242, 95%, 70%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,95%,70%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 95%, 70%) | color: hsl(242, 95%, 70%) | |
| HEX | #6F6AFB | color: #6F6AFB | |
| RGB | rgb(111, 106, 251) | color: rgb(111, 106, 251) | |
| CMYK | cmyk(56%, 58%, 0%, 2%) | — | |
| HSV | hsv(242, 58%, 98%) | — | |
| HWB | hwb(242 41% 2%) | color: hwb(242 41% 2%) | |
| OKLCH | oklch(0.608 0.2096 279.68) | color: oklch(0.608 0.2096 279.68) | |
| Lab | lab(52.57 41.52 -72.02) | color: lab(52.57 41.52 -72.02) | |
| LCH | lch(52.57 83.13 299.96) | color: lch(52.57 83.13 299.96) |
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: black
Color Blindness Simulation
Protanopia (Red-blind)
#6D6DD8 — rgb(109, 109, 216)
Deuteranopia (Green-blind)
#6D6ED0 — rgb(109, 110, 208)
Tritanopia (Blue-blind)
#6FBCB6 — rgb(111, 188, 182)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 95%, 70%);
text
color: hsl(242, 95%, 70%);
border
border: 2px solid hsl(242, 95%, 70%);
gradient light
background: linear-gradient(to right, hsl(242, 95%, 90%), hsl(242, 95%, 70%));
gradient dark
background: linear-gradient(to right, hsl(242, 95%, 70%), hsl(242, 95%, 50%))
hex
background-color: #6F6AFB;
tailwind
bg-[hsl(242,95%,70%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 95%, 70%, 0.4);
css variable
--color-primary: hsl(242, 95%, 70%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 95%, 70%)?
HEX: #6F6AFB | RGB: rgb(111, 106, 251) | CMYK: 56%, 58%, 0%, 2% | HSV: 242°, 58%, 98%. Copy any format from the conversion table above.
What colors go well with #6F6AFB?
The complementary color is HSL(62, 95%, 70%). 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, 95%, 70%) in CSS?
As HSL: color: hsl(242, 95%, 70%); — As HEX: color: #6F6AFB; — As RGB: color: rgb(111, 106, 251); — Tailwind CSS: bg-[hsl(242,95%,70%)] — CSS variable: --color-primary: hsl(242, 95%, 70%);