HSL(222, 76%, 36%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(222,76%,36%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 76%, 36%) | color: hsl(222, 76%, 36%) | |
| HEX | #1640A2 | color: #1640A2 | |
| RGB | rgb(22, 64, 162) | color: rgb(22, 64, 162) | |
| CMYK | cmyk(86%, 60%, 0%, 36%) | — | |
| HSV | hsv(222, 86%, 64%) | — | |
| HWB | hwb(222 9% 36%) | color: hwb(222 9% 36%) | |
| OKLCH | oklch(0.41 0.1654 263.34) | color: oklch(0.41 0.1654 263.34) | |
| Lab | lab(30.51 24.73 -56.77) | color: lab(30.51 24.73 -56.77) | |
| LCH | lch(30.51 61.92 293.54) | color: lch(30.51 61.92 293.54) |
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)
#28298A — rgb(40, 41, 138)
Deuteranopia (Green-blind)
#262385 — rgb(38, 35, 133)
Tritanopia (Blue-blind)
#187873 — rgb(24, 120, 115)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 76%, 36%);
text
color: hsl(222, 76%, 36%);
border
border: 2px solid hsl(222, 76%, 36%);
gradient light
background: linear-gradient(to right, hsl(222, 76%, 56%), hsl(222, 76%, 36%));
gradient dark
background: linear-gradient(to right, hsl(222, 76%, 36%), hsl(222, 76%, 16%))
hex
background-color: #1640A2;
tailwind
bg-[hsl(222,76%,36%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 76%, 36%, 0.4);
css variable
--color-primary: hsl(222, 76%, 36%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 76%, 36%)?
HEX: #1640A2 | RGB: rgb(22, 64, 162) | CMYK: 86%, 60%, 0%, 36% | HSV: 222°, 86%, 64%. Copy any format from the conversion table above.
What colors go well with #1640A2?
The complementary color is HSL(42, 76%, 36%). 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, 76%, 36%) in CSS?
As HSL: color: hsl(222, 76%, 36%); — As HEX: color: #1640A2; — As RGB: color: rgb(22, 64, 162); — Tailwind CSS: bg-[hsl(222,76%,36%)] — CSS variable: --color-primary: hsl(222, 76%, 36%);