HSL(217, 74%, 51%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(217,74%,51%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(217, 74%, 51%) | color: hsl(217, 74%, 51%) | |
| HEX | #266CDF | color: #266CDF | |
| RGB | rgb(38, 108, 223) | color: rgb(38, 108, 223) | |
| CMYK | cmyk(83%, 52%, 0%, 13%) | — | |
| HSV | hsv(217, 83%, 87%) | — | |
| HWB | hwb(217 15% 13%) | color: hwb(217 15% 13%) | |
| OKLCH | oklch(0.5549 0.189 260.09) | color: oklch(0.5549 0.189 260.09) | |
| Lab | lab(47.58 20.74 -64.59) | color: lab(47.58 20.74 -64.59) | |
| LCH | lch(47.58 67.84 287.8) | color: lch(47.58 67.84 287.8) |
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)
#4445C3 — rgb(68, 69, 195)
Deuteranopia (Green-blind)
#403BBD — rgb(64, 59, 189)
Tritanopia (Blue-blind)
#2AADA8 — rgb(42, 173, 168)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(217, 74%, 51%);
text
color: hsl(217, 74%, 51%);
border
border: 2px solid hsl(217, 74%, 51%);
gradient light
background: linear-gradient(to right, hsl(217, 74%, 71%), hsl(217, 74%, 51%));
gradient dark
background: linear-gradient(to right, hsl(217, 74%, 51%), hsl(217, 74%, 31%))
hex
background-color: #266CDF;
tailwind
bg-[hsl(217,74%,51%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(217, 74%, 51%, 0.4);
css variable
--color-primary: hsl(217, 74%, 51%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(217, 74%, 51%)?
HEX: #266CDF | RGB: rgb(38, 108, 223) | CMYK: 83%, 52%, 0%, 13% | HSV: 217°, 83%, 87%. Copy any format from the conversion table above.
What colors go well with #266CDF?
The complementary color is HSL(37, 74%, 51%). For a triadic harmony, use hues 217°, 337°, and 97°. For analogous combinations, try hues 187° and 247°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(217, 74%, 51%) in CSS?
As HSL: color: hsl(217, 74%, 51%); — As HEX: color: #266CDF; — As RGB: color: rgb(38, 108, 223); — Tailwind CSS: bg-[hsl(217,74%,51%)] — CSS variable: --color-primary: hsl(217, 74%, 51%);