HSL(222, 90%, 16%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(222,90%,16%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 90%, 16%) | color: hsl(222, 90%, 16%) | |
| HEX | #041A4E | color: #041A4E | |
| RGB | rgb(4, 26, 78) | color: rgb(4, 26, 78) | |
| CMYK | cmyk(95%, 67%, 0%, 69%) | — | |
| HSV | hsv(222, 95%, 31%) | — | |
| HWB | hwb(222 2% 69%) | color: hwb(222 2% 69%) | |
| OKLCH | oklch(0.2415 0.1001 262.85) | color: oklch(0.2415 0.1001 262.85) | |
| Lab | lab(11.38 15.13 -34.29) | color: lab(11.38 15.13 -34.29) | |
| LCH | lch(11.38 37.48 293.81) | color: lch(11.38 37.48 293.81) |
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)
#0E0E41 — rgb(14, 14, 65)
Deuteranopia (Green-blind)
#0C0B3E — rgb(12, 11, 62)
Tritanopia (Blue-blind)
#053735 — rgb(5, 55, 53)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 90%, 16%);
text
color: hsl(222, 90%, 16%);
border
border: 2px solid hsl(222, 90%, 16%);
gradient light
background: linear-gradient(to right, hsl(222, 90%, 36%), hsl(222, 90%, 16%));
gradient dark
background: linear-gradient(to right, hsl(222, 90%, 16%), hsl(222, 90%, 0%))
hex
background-color: #041A4E;
tailwind
bg-[hsl(222,90%,16%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 90%, 16%, 0.4);
css variable
--color-primary: hsl(222, 90%, 16%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 90%, 16%)?
HEX: #041A4E | RGB: rgb(4, 26, 78) | CMYK: 95%, 67%, 0%, 69% | HSV: 222°, 95%, 31%. Copy any format from the conversion table above.
What colors go well with #041A4E?
The complementary color is HSL(42, 90%, 16%). For a triadic harmony, use hues 222°, 342°, and 102°. For analogous combinations, try hues 192° and 252°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(222, 90%, 16%) in CSS?
As HSL: color: hsl(222, 90%, 16%); — As HEX: color: #041A4E; — As RGB: color: rgb(4, 26, 78); — Tailwind CSS: bg-[hsl(222,90%,16%)] — CSS variable: --color-primary: hsl(222, 90%, 16%);