HSL(237, 97%, 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(237,97%,47%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(237, 97%, 47%) | color: hsl(237, 97%, 47%) | |
| HEX | #040FEC | color: #040FEC | |
| RGB | rgb(4, 15, 236) | color: rgb(4, 15, 236) | |
| CMYK | cmyk(98%, 94%, 0%, 7%) | — | |
| HSV | hsv(237, 98%, 93%) | — | |
| HWB | hwb(237 2% 7%) | color: hwb(237 2% 7%) | |
| OKLCH | oklch(0.4326 0.2911 264.44) | color: oklch(0.4326 0.2911 264.44) | |
| Lab | lab(30.45 72.1 -100.21) | color: lab(30.45 72.1 -100.21) | |
| LCH | lch(30.45 123.45 305.73) | color: lch(30.45 123.45 305.73) |
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)
#0909B7 — rgb(9, 9, 183)
Deuteranopia (Green-blind)
#0807AA — rgb(8, 7, 170)
Tritanopia (Blue-blind)
#058C83 — rgb(5, 140, 131)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(237, 97%, 47%);
text
color: hsl(237, 97%, 47%);
border
border: 2px solid hsl(237, 97%, 47%);
gradient light
background: linear-gradient(to right, hsl(237, 97%, 67%), hsl(237, 97%, 47%));
gradient dark
background: linear-gradient(to right, hsl(237, 97%, 47%), hsl(237, 97%, 27%))
hex
background-color: #040FEC;
tailwind
bg-[hsl(237,97%,47%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(237, 97%, 47%, 0.4);
css variable
--color-primary: hsl(237, 97%, 47%);
Related Colors
Use Cases for Vivid Blue
Frequently Asked Questions
What are all the color codes for HSL(237, 97%, 47%)?
HEX: #040FEC | RGB: rgb(4, 15, 236) | CMYK: 98%, 94%, 0%, 7% | HSV: 237°, 98%, 93%. Copy any format from the conversion table above.
What colors go well with #040FEC?
The complementary color is HSL(57, 97%, 47%). For a triadic harmony, use hues 237°, 357°, and 117°. For analogous combinations, try hues 207° and 267°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(237, 97%, 47%) in CSS?
As HSL: color: hsl(237, 97%, 47%); — As HEX: color: #040FEC; — As RGB: color: rgb(4, 15, 236); — Tailwind CSS: bg-[hsl(237,97%,47%)] — CSS variable: --color-primary: hsl(237, 97%, 47%);