HSL(222, 51%, 25%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(222,51%,25%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(222, 51%, 25%) | color: hsl(222, 51%, 25%) | |
| HEX | #1F3360 | color: #1F3360 | |
| RGB | rgb(31, 51, 96) | color: rgb(31, 51, 96) | |
| CMYK | cmyk(68%, 47%, 0%, 62%) | — | |
| HSV | hsv(222, 68%, 38%) | — | |
| HWB | hwb(222 12% 62%) | color: hwb(222 12% 62%) | |
| OKLCH | oklch(0.33 0.0837 264.28) | color: oklch(0.33 0.0837 264.28) | |
| Lab | lab(21.96 8.25 -29.2) | color: lab(21.96 8.25 -29.2) | |
| LCH | lch(21.96 30.34 285.78) | color: lch(21.96 30.34 285.78) |
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)
#282855 — rgb(40, 40, 85)
Deuteranopia (Green-blind)
#272553 — rgb(39, 37, 83)
Tritanopia (Blue-blind)
#204D4B — rgb(32, 77, 75)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(222, 51%, 25%);
text
color: hsl(222, 51%, 25%);
border
border: 2px solid hsl(222, 51%, 25%);
gradient light
background: linear-gradient(to right, hsl(222, 51%, 45%), hsl(222, 51%, 25%));
gradient dark
background: linear-gradient(to right, hsl(222, 51%, 25%), hsl(222, 51%, 5%))
hex
background-color: #1F3360;
tailwind
bg-[hsl(222,51%,25%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(222, 51%, 25%, 0.4);
css variable
--color-primary: hsl(222, 51%, 25%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(222, 51%, 25%)?
HEX: #1F3360 | RGB: rgb(31, 51, 96) | CMYK: 68%, 47%, 0%, 62% | HSV: 222°, 68%, 38%. Copy any format from the conversion table above.
What colors go well with #1F3360?
The complementary color is HSL(42, 51%, 25%). 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, 51%, 25%) in CSS?
As HSL: color: hsl(222, 51%, 25%); — As HEX: color: #1F3360; — As RGB: color: rgb(31, 51, 96); — Tailwind CSS: bg-[hsl(222,51%,25%)] — CSS variable: --color-primary: hsl(222, 51%, 25%);