HSL(242, 81%, 54%)
Vivid Blue — Blue color
Adjust Color
Color Information
Color Name
Vivid Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,81%,54%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 81%, 54%) | color: hsl(242, 81%, 54%) | |
| HEX | #312BE9 | color: #312BE9 | |
| RGB | rgb(49, 43, 233) | color: rgb(49, 43, 233) | |
| CMYK | cmyk(79%, 82%, 0%, 9%) | — | |
| HSV | hsv(242, 82%, 91%) | — | |
| HWB | hwb(242 16% 9%) | color: hwb(242 16% 9%) | |
| OKLCH | oklch(0.4632 0.2654 270.7) | color: oklch(0.4632 0.2654 270.7) | |
| Lab | lab(34.52 63.02 -91.68) | color: lab(34.52 63.02 -91.68) | |
| LCH | lch(34.52 111.25 304.5) | color: lch(34.52 111.25 304.5) |
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)
#2E2EBB — rgb(46, 46, 187)
Deuteranopia (Green-blind)
#2F2FB0 — rgb(47, 47, 176)
Tritanopia (Blue-blind)
#31978F — rgb(49, 151, 143)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 81%, 54%);
text
color: hsl(242, 81%, 54%);
border
border: 2px solid hsl(242, 81%, 54%);
gradient light
background: linear-gradient(to right, hsl(242, 81%, 74%), hsl(242, 81%, 54%));
gradient dark
background: linear-gradient(to right, hsl(242, 81%, 54%), hsl(242, 81%, 34%))
hex
background-color: #312BE9;
tailwind
bg-[hsl(242,81%,54%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 81%, 54%, 0.4);
css variable
--color-primary: hsl(242, 81%, 54%);
Related Colors
Use Cases for Vivid Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 81%, 54%)?
HEX: #312BE9 | RGB: rgb(49, 43, 233) | CMYK: 79%, 82%, 0%, 9% | HSV: 242°, 82%, 91%. Copy any format from the conversion table above.
What colors go well with #312BE9?
The complementary color is HSL(62, 81%, 54%). For a triadic harmony, use hues 242°, 2°, and 122°. For analogous combinations, try hues 212° and 272°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(242, 81%, 54%) in CSS?
As HSL: color: hsl(242, 81%, 54%); — As HEX: color: #312BE9; — As RGB: color: rgb(49, 43, 233); — Tailwind CSS: bg-[hsl(242,81%,54%)] — CSS variable: --color-primary: hsl(242, 81%, 54%);