HSL(242, 52%, 59%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,52%,59%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 52%, 59%) | color: hsl(242, 52%, 59%) | |
| HEX | #6460CD | color: #6460CD | |
| RGB | rgb(100, 96, 205) | color: rgb(100, 96, 205) | |
| CMYK | cmyk(51%, 53%, 0%, 20%) | — | |
| HSV | hsv(242, 53%, 80%) | — | |
| HWB | hwb(242 38% 20%) | color: hwb(242 38% 20%) | |
| OKLCH | oklch(0.5494 0.1638 281.2) | color: oklch(0.5494 0.1638 281.2) | |
| Lab | lab(46.29 31.15 -56.26) | color: lab(46.29 31.15 -56.26) | |
| LCH | lch(46.29 64.31 298.97) | color: lch(46.29 64.31 298.97) |
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)
#6262B3 — rgb(98, 98, 179)
Deuteranopia (Green-blind)
#6363AC — rgb(99, 99, 172)
Tritanopia (Blue-blind)
#649E99 — rgb(100, 158, 153)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 52%, 59%);
text
color: hsl(242, 52%, 59%);
border
border: 2px solid hsl(242, 52%, 59%);
gradient light
background: linear-gradient(to right, hsl(242, 52%, 79%), hsl(242, 52%, 59%));
gradient dark
background: linear-gradient(to right, hsl(242, 52%, 59%), hsl(242, 52%, 39%))
hex
background-color: #6460CD;
tailwind
bg-[hsl(242,52%,59%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 52%, 59%, 0.4);
css variable
--color-primary: hsl(242, 52%, 59%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 52%, 59%)?
HEX: #6460CD | RGB: rgb(100, 96, 205) | CMYK: 51%, 53%, 0%, 20% | HSV: 242°, 53%, 80%. Copy any format from the conversion table above.
What colors go well with #6460CD?
The complementary color is HSL(62, 52%, 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, 52%, 59%) in CSS?
As HSL: color: hsl(242, 52%, 59%); — As HEX: color: #6460CD; — As RGB: color: rgb(100, 96, 205); — Tailwind CSS: bg-[hsl(242,52%,59%)] — CSS variable: --color-primary: hsl(242, 52%, 59%);