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