HSL(251, 90%, 47%)
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,90%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(251, 90%, 47%) | color: hsl(251, 90%, 47%) | |
| HEX | #340CE4 | color: #340CE4 | |
| RGB | rgb(52, 12, 228) | color: rgb(52, 12, 228) | |
| CMYK | cmyk(77%, 95%, 0%, 11%) | — | |
| HSV | hsv(251, 95%, 89%) | — | |
| HWB | hwb(251 4% 11%) | color: hwb(251 4% 11%) | |
| OKLCH | oklch(0.437 0.2743 272.54) | color: oklch(0.437 0.2743 272.54) | |
| Lab | lab(30.86 71.46 -94.92) | color: lab(30.86 71.46 -94.92) | |
| LCH | lch(30.86 118.81 306.97) | color: lch(30.86 118.81 306.97) |
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)
#2322B0 — rgb(35, 34, 176)
Deuteranopia (Green-blind)
#2528A3 — rgb(37, 40, 163)
Tritanopia (Blue-blind)
#32867D — rgb(50, 134, 125)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(251, 90%, 47%);
text
color: hsl(251, 90%, 47%);
border
border: 2px solid hsl(251, 90%, 47%);
gradient light
background: linear-gradient(to right, hsl(251, 90%, 67%), hsl(251, 90%, 47%));
gradient dark
background: linear-gradient(to right, hsl(251, 90%, 47%), hsl(251, 90%, 27%))
hex
background-color: #340CE4;
tailwind
bg-[hsl(251,90%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(251, 90%, 47%, 0.4);
css variable
--color-primary: hsl(251, 90%, 47%);
Related Colors
Use Cases for Vivid Blue
Frequently Asked Questions
What are all the color codes for HSL(251, 90%, 47%)?
HEX: #340CE4 | RGB: rgb(52, 12, 228) | CMYK: 77%, 95%, 0%, 11% | HSV: 251°, 95%, 89%. Copy any format from the conversion table above.
What colors go well with #340CE4?
The complementary color is HSL(71, 90%, 47%). 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%, 47%) in CSS?
As HSL: color: hsl(251, 90%, 47%); — As HEX: color: #340CE4; — As RGB: color: rgb(52, 12, 228); — Tailwind CSS: bg-[hsl(251,90%,47%)] — CSS variable: --color-primary: hsl(251, 90%, 47%);