HSL(251, 90%, 80%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(251,90%,80%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 90%, 80%) | color: hsl(251, 90%, 80%) | |
| HEX | #AF9EFA | color: #AF9EFA | |
| RGB | rgb(175, 158, 250) | color: rgb(175, 158, 250) | |
| CMYK | cmyk(30%, 37%, 0%, 2%) | — | |
| HSV | hsv(251, 37%, 98%) | — | |
| HWB | hwb(251 62% 2%) | color: hwb(251 62% 2%) | |
| OKLCH | oklch(0.7498 0.131 291.39) | color: oklch(0.7498 0.131 291.39) | |
| Lab | lab(69.8 25.99 -43.68) | color: lab(69.8 25.99 -43.68) | |
| LCH | lch(69.8 50.83 300.75) | color: lch(69.8 50.83 300.75) |
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)
#A8A7E4 — rgb(168, 167, 228)
Deuteranopia (Green-blind)
#A9AADE — rgb(169, 170, 222)
Tritanopia (Blue-blind)
#AED2CE — rgb(174, 210, 206)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 90%, 80%);
text
color: hsl(251, 90%, 80%);
border
border: 2px solid hsl(251, 90%, 80%);
gradient light
background: linear-gradient(to right, hsl(251, 90%, 100%), hsl(251, 90%, 80%));
gradient dark
background: linear-gradient(to right, hsl(251, 90%, 80%), hsl(251, 90%, 60%))
hex
background-color: #AF9EFA;
tailwind
bg-[hsl(251,90%,80%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 90%, 80%, 0.4);
css variable
--color-primary: hsl(251, 90%, 80%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 90%, 80%)?
HEX: #AF9EFA | RGB: rgb(175, 158, 250) | CMYK: 30%, 37%, 0%, 2% | HSV: 251°, 37%, 98%. Copy any format from the conversion table above.
What colors go well with #AF9EFA?
The complementary color is HSL(71, 90%, 80%). For a triadic harmony, use hues 251°, 11°, and 131°. For analogous combinations, try hues 221° and 281°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(251, 90%, 80%) in CSS?
As HSL: color: hsl(251, 90%, 80%); — As HEX: color: #AF9EFA; — As RGB: color: rgb(175, 158, 250); — Tailwind CSS: bg-[hsl(251,90%,80%)] — CSS variable: --color-primary: hsl(251, 90%, 80%);