HSL(239, 90%, 24%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(239,90%,24%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(239, 90%, 24%) | color: hsl(239, 90%, 24%) | |
| HEX | #060874 | color: #060874 | |
| RGB | rgb(6, 8, 116) | color: rgb(6, 8, 116) | |
| CMYK | cmyk(95%, 93%, 0%, 55%) | — | |
| HSV | hsv(239, 95%, 45%) | — | |
| HWB | hwb(239 2% 55%) | color: hwb(239 2% 55%) | |
| OKLCH | oklch(0.2631 0.1678 266.25) | color: oklch(0.2631 0.1678 266.25) | |
| Lab | lab(12.43 40.77 -57.88) | color: lab(12.43 40.77 -57.88) | |
| LCH | lch(12.43 70.8 305.16) | color: lch(12.43 70.8 305.16) |
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)
#07075A — rgb(7, 7, 90)
Deuteranopia (Green-blind)
#070754 — rgb(7, 7, 84)
Tritanopia (Blue-blind)
#064541 — rgb(6, 69, 65)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(239, 90%, 24%);
text
color: hsl(239, 90%, 24%);
border
border: 2px solid hsl(239, 90%, 24%);
gradient light
background: linear-gradient(to right, hsl(239, 90%, 44%), hsl(239, 90%, 24%));
gradient dark
background: linear-gradient(to right, hsl(239, 90%, 24%), hsl(239, 90%, 4%))
hex
background-color: #060874;
tailwind
bg-[hsl(239,90%,24%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(239, 90%, 24%, 0.4);
css variable
--color-primary: hsl(239, 90%, 24%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(239, 90%, 24%)?
HEX: #060874 | RGB: rgb(6, 8, 116) | CMYK: 95%, 93%, 0%, 55% | HSV: 239°, 95%, 45%. Copy any format from the conversion table above.
What colors go well with #060874?
The complementary color is HSL(59, 90%, 24%). For a triadic harmony, use hues 239°, 359°, and 119°. For analogous combinations, try hues 209° and 269°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(239, 90%, 24%) in CSS?
As HSL: color: hsl(239, 90%, 24%); — As HEX: color: #060874; — As RGB: color: rgb(6, 8, 116); — Tailwind CSS: bg-[hsl(239,90%,24%)] — CSS variable: --color-primary: hsl(239, 90%, 24%);