HSL(242, 74%, 52%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(242,74%,52%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(242, 74%, 52%) | color: hsl(242, 74%, 52%) | |
| HEX | #302ADF | color: #302ADF | |
| RGB | rgb(48, 42, 223) | color: rgb(48, 42, 223) | |
| CMYK | cmyk(78%, 81%, 0%, 13%) | — | |
| HSV | hsv(242, 81%, 87%) | — | |
| HWB | hwb(242 17% 13%) | color: hwb(242 17% 13%) | |
| OKLCH | oklch(0.4503 0.2554 271.02) | color: oklch(0.4503 0.2554 271.02) | |
| Lab | lab(33.16 60.47 -88.23) | color: lab(33.16 60.47 -88.23) | |
| LCH | lch(33.16 106.96 304.43) | color: lch(33.16 106.96 304.43) |
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)
#2D2DB3 — rgb(45, 45, 179)
Deuteranopia (Green-blind)
#2E2EA9 — rgb(46, 46, 169)
Tritanopia (Blue-blind)
#309189 — rgb(48, 145, 137)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(242, 74%, 52%);
text
color: hsl(242, 74%, 52%);
border
border: 2px solid hsl(242, 74%, 52%);
gradient light
background: linear-gradient(to right, hsl(242, 74%, 72%), hsl(242, 74%, 52%));
gradient dark
background: linear-gradient(to right, hsl(242, 74%, 52%), hsl(242, 74%, 32%))
hex
background-color: #302ADF;
tailwind
bg-[hsl(242,74%,52%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(242, 74%, 52%, 0.4);
css variable
--color-primary: hsl(242, 74%, 52%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(242, 74%, 52%)?
HEX: #302ADF | RGB: rgb(48, 42, 223) | CMYK: 78%, 81%, 0%, 13% | HSV: 242°, 81%, 87%. Copy any format from the conversion table above.
What colors go well with #302ADF?
The complementary color is HSL(62, 74%, 52%). 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, 74%, 52%) in CSS?
As HSL: color: hsl(242, 74%, 52%); — As HEX: color: #302ADF; — As RGB: color: rgb(48, 42, 223); — Tailwind CSS: bg-[hsl(242,74%,52%)] — CSS variable: --color-primary: hsl(242, 74%, 52%);