HSL(251, 98%, 42%)
Vivid Blue — Blue color
Adjust Color
Color Information
Color Name
Vivid Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(251,98%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 98%, 42%) | color: hsl(251, 98%, 42%) | |
| HEX | #2902D4 | color: #2902D4 | |
| RGB | rgb(41, 2, 212) | color: rgb(41, 2, 212) | |
| CMYK | cmyk(81%, 99%, 0%, 17%) | — | |
| HSV | hsv(251, 99%, 83%) | — | |
| HWB | hwb(251 1% 17%) | color: hwb(251 1% 17%) | |
| OKLCH | oklch(0.4068 0.2637 270.76) | color: oklch(0.4068 0.2637 270.76) | |
| Lab | lab(27.48 68.97 -91.35) | color: lab(27.48 68.97 -91.35) | |
| LCH | lch(27.48 114.46 307.05) | color: lch(27.48 114.46 307.05) |
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)
#1818A1 — rgb(24, 24, 161)
Deuteranopia (Green-blind)
#1A1D95 — rgb(26, 29, 149)
Tritanopia (Blue-blind)
#277970 — rgb(39, 121, 112)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 98%, 42%);
text
color: hsl(251, 98%, 42%);
border
border: 2px solid hsl(251, 98%, 42%);
gradient light
background: linear-gradient(to right, hsl(251, 98%, 62%), hsl(251, 98%, 42%));
gradient dark
background: linear-gradient(to right, hsl(251, 98%, 42%), hsl(251, 98%, 22%))
hex
background-color: #2902D4;
tailwind
bg-[hsl(251,98%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 98%, 42%, 0.4);
css variable
--color-primary: hsl(251, 98%, 42%);
Related Colors
Use Cases for Vivid Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 98%, 42%)?
HEX: #2902D4 | RGB: rgb(41, 2, 212) | CMYK: 81%, 99%, 0%, 17% | HSV: 251°, 99%, 83%. Copy any format from the conversion table above.
What colors go well with #2902D4?
The complementary color is HSL(71, 98%, 42%). 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, 98%, 42%) in CSS?
As HSL: color: hsl(251, 98%, 42%); — As HEX: color: #2902D4; — As RGB: color: rgb(41, 2, 212); — Tailwind CSS: bg-[hsl(251,98%,42%)] — CSS variable: --color-primary: hsl(251, 98%, 42%);