HSL(226, 85%, 65%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(226,85%,65%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(226, 85%, 65%) | color: hsl(226, 85%, 65%) | |
| HEX | #5A7DF2 | color: #5A7DF2 | |
| RGB | rgb(90, 125, 242) | color: rgb(90, 125, 242) | |
| CMYK | cmyk(63%, 48%, 0%, 5%) | — | |
| HSV | hsv(226, 63%, 95%) | — | |
| HWB | hwb(226 35% 5%) | color: hwb(226 35% 5%) | |
| OKLCH | oklch(0.6235 0.1794 268.31) | color: oklch(0.6235 0.1794 268.31) | |
| Lab | lab(55.33 23.54 -62.62) | color: lab(55.33 23.54 -62.62) | |
| LCH | lch(55.33 66.9 290.6) | color: lch(55.33 66.9 290.6) |
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)
#6969D6 — rgb(105, 105, 214)
Deuteranopia (Green-blind)
#6765CF — rgb(103, 101, 207)
Tritanopia (Blue-blind)
#5CBFBA — rgb(92, 191, 186)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(226, 85%, 65%);
text
color: hsl(226, 85%, 65%);
border
border: 2px solid hsl(226, 85%, 65%);
gradient light
background: linear-gradient(to right, hsl(226, 85%, 85%), hsl(226, 85%, 65%));
gradient dark
background: linear-gradient(to right, hsl(226, 85%, 65%), hsl(226, 85%, 45%))
hex
background-color: #5A7DF2;
tailwind
bg-[hsl(226,85%,65%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(226, 85%, 65%, 0.4);
css variable
--color-primary: hsl(226, 85%, 65%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(226, 85%, 65%)?
HEX: #5A7DF2 | RGB: rgb(90, 125, 242) | CMYK: 63%, 48%, 0%, 5% | HSV: 226°, 63%, 95%. Copy any format from the conversion table above.
What colors go well with #5A7DF2?
The complementary color is HSL(46, 85%, 65%). For a triadic harmony, use hues 226°, 346°, and 106°. For analogous combinations, try hues 196° and 256°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(226, 85%, 65%) in CSS?
As HSL: color: hsl(226, 85%, 65%); — As HEX: color: #5A7DF2; — As RGB: color: rgb(90, 125, 242); — Tailwind CSS: bg-[hsl(226,85%,65%)] — CSS variable: --color-primary: hsl(226, 85%, 65%);