HSL(222, 80%, 28%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(222,80%,28%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 80%, 28%) | color: hsl(222, 80%, 28%) | |
| HEX | #0E3181 | color: #0E3181 | |
| RGB | rgb(14, 49, 129) | color: rgb(14, 49, 129) | |
| CMYK | cmyk(89%, 62%, 0%, 49%) | — | |
| HSV | hsv(222, 89%, 51%) | — | |
| HWB | hwb(222 6% 49%) | color: hwb(222 6% 49%) | |
| OKLCH | oklch(0.3461 0.1408 263.16) | color: oklch(0.3461 0.1408 263.16) | |
| Lab | lab(23.25 21.12 -48.31) | color: lab(23.25 21.12 -48.31) | |
| LCH | lch(23.25 52.72 293.61) | color: lch(23.25 52.72 293.61) |
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)
#1D1D6E — rgb(29, 29, 110)
Deuteranopia (Green-blind)
#1B1969 — rgb(27, 25, 105)
Tritanopia (Blue-blind)
#105E5B — rgb(16, 94, 91)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 80%, 28%);
text
color: hsl(222, 80%, 28%);
border
border: 2px solid hsl(222, 80%, 28%);
gradient light
background: linear-gradient(to right, hsl(222, 80%, 48%), hsl(222, 80%, 28%));
gradient dark
background: linear-gradient(to right, hsl(222, 80%, 28%), hsl(222, 80%, 8%))
hex
background-color: #0E3181;
tailwind
bg-[hsl(222,80%,28%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 80%, 28%, 0.4);
css variable
--color-primary: hsl(222, 80%, 28%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 80%, 28%)?
HEX: #0E3181 | RGB: rgb(14, 49, 129) | CMYK: 89%, 62%, 0%, 49% | HSV: 222°, 89%, 51%. Copy any format from the conversion table above.
What colors go well with #0E3181?
The complementary color is HSL(42, 80%, 28%). 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, 80%, 28%) in CSS?
As HSL: color: hsl(222, 80%, 28%); — As HEX: color: #0E3181; — As RGB: color: rgb(14, 49, 129); — Tailwind CSS: bg-[hsl(222,80%,28%)] — CSS variable: --color-primary: hsl(222, 80%, 28%);