HSL(240, 62%, 16%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(240,62%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(240, 62%, 16%) | color: hsl(240, 62%, 16%) | |
| HEX | #101042 | color: #101042 | |
| RGB | rgb(16, 16, 66) | color: rgb(16, 16, 66) | |
| CMYK | cmyk(76%, 76%, 0%, 74%) | — | |
| HSV | hsv(240, 76%, 26%) | — | |
| HWB | hwb(240 6% 74%) | color: hwb(240 6% 74%) | |
| OKLCH | oklch(0.2139 0.0916 275.39) | color: oklch(0.2139 0.0916 275.39) | |
| Lab | lab(7.89 19.04 -31.59) | color: lab(7.89 19.04 -31.59) | |
| LCH | lch(7.89 36.88 301.08) | color: lch(7.89 36.88 301.08) |
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)
#101036 — rgb(16, 16, 54)
Deuteranopia (Green-blind)
#101033 — rgb(16, 16, 51)
Tritanopia (Blue-blind)
#102C2A — rgb(16, 44, 42)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(240, 62%, 16%);
text
color: hsl(240, 62%, 16%);
border
border: 2px solid hsl(240, 62%, 16%);
gradient light
background: linear-gradient(to right, hsl(240, 62%, 36%), hsl(240, 62%, 16%));
gradient dark
background: linear-gradient(to right, hsl(240, 62%, 16%), hsl(240, 62%, 0%))
hex
background-color: #101042;
tailwind
bg-[hsl(240,62%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(240, 62%, 16%, 0.4);
css variable
--color-primary: hsl(240, 62%, 16%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(240, 62%, 16%)?
HEX: #101042 | RGB: rgb(16, 16, 66) | CMYK: 76%, 76%, 0%, 74% | HSV: 240°, 76%, 26%. Copy any format from the conversion table above.
What colors go well with #101042?
The complementary color is HSL(60, 62%, 16%). For a triadic harmony, use hues 240°, 0°, and 120°. For analogous combinations, try hues 210° and 270°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(240, 62%, 16%) in CSS?
As HSL: color: hsl(240, 62%, 16%); — As HEX: color: #101042; — As RGB: color: rgb(16, 16, 66); — Tailwind CSS: bg-[hsl(240,62%,16%)] — CSS variable: --color-primary: hsl(240, 62%, 16%);