HSL(226, 21%, 54%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(226,21%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(226, 21%, 54%) | color: hsl(226, 21%, 54%) | |
| HEX | #717DA2 | color: #717DA2 | |
| RGB | rgb(113, 125, 162) | color: rgb(113, 125, 162) | |
| CMYK | cmyk(30%, 23%, 0%, 36%) | — | |
| HSV | hsv(225, 30%, 64%) | — | |
| HWB | hwb(225 45% 36%) | color: hwb(225 45% 36%) | |
| OKLCH | oklch(0.5939 0.0585 270.6) | color: oklch(0.5939 0.0585 270.6) | |
| Lab | lab(52.71 4.47 -21.22) | color: lab(52.71 4.47 -21.22) | |
| LCH | lch(52.71 21.69 281.9) | color: lch(52.71 21.69 281.9) |
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)
#767699 — rgb(118, 118, 153)
Deuteranopia (Green-blind)
#767597 — rgb(118, 117, 151)
Tritanopia (Blue-blind)
#729290 — rgb(114, 146, 144)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(226, 21%, 54%);
text
color: hsl(226, 21%, 54%);
border
border: 2px solid hsl(226, 21%, 54%);
gradient light
background: linear-gradient(to right, hsl(226, 21%, 74%), hsl(226, 21%, 54%));
gradient dark
background: linear-gradient(to right, hsl(226, 21%, 54%), hsl(226, 21%, 34%))
hex
background-color: #717DA2;
tailwind
bg-[hsl(226,21%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(226, 21%, 54%, 0.4);
css variable
--color-primary: hsl(226, 21%, 54%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(226, 21%, 54%)?
HEX: #717DA2 | RGB: rgb(113, 125, 162) | CMYK: 30%, 23%, 0%, 36% | HSV: 225°, 30%, 64%. Copy any format from the conversion table above.
What colors go well with #717DA2?
The complementary color is HSL(46, 21%, 54%). 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, 21%, 54%) in CSS?
As HSL: color: hsl(226, 21%, 54%); — As HEX: color: #717DA2; — As RGB: color: rgb(113, 125, 162); — Tailwind CSS: bg-[hsl(226,21%,54%)] — CSS variable: --color-primary: hsl(226, 21%, 54%);