HSL(225, 42%, 42%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(225,42%,42%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(225, 42%, 42%) | color: hsl(225, 42%, 42%) | |
| HEX | #3E5598 | color: #3E5598 | |
| RGB | rgb(62, 85, 152) | color: rgb(62, 85, 152) | |
| CMYK | cmyk(59%, 44%, 0%, 40%) | — | |
| HSV | hsv(225, 59%, 60%) | — | |
| HWB | hwb(225 25% 40%) | color: hwb(225 25% 40%) | |
| OKLCH | oklch(0.4653 0.1123 267.65) | color: oklch(0.4653 0.1123 267.65) | |
| Lab | lab(37.46 12.5 -39.42) | color: lab(37.46 12.5 -39.42) | |
| LCH | lch(37.46 41.35 287.59) | color: lch(37.46 41.35 287.59) |
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)
#484888 — rgb(72, 72, 136)
Deuteranopia (Green-blind)
#474584 — rgb(71, 69, 132)
Tritanopia (Blue-blind)
#3F7B78 — rgb(63, 123, 120)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(225, 42%, 42%);
text
color: hsl(225, 42%, 42%);
border
border: 2px solid hsl(225, 42%, 42%);
gradient light
background: linear-gradient(to right, hsl(225, 42%, 62%), hsl(225, 42%, 42%));
gradient dark
background: linear-gradient(to right, hsl(225, 42%, 42%), hsl(225, 42%, 22%))
hex
background-color: #3E5598;
tailwind
bg-[hsl(225,42%,42%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(225, 42%, 42%, 0.4);
css variable
--color-primary: hsl(225, 42%, 42%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(225, 42%, 42%)?
HEX: #3E5598 | RGB: rgb(62, 85, 152) | CMYK: 59%, 44%, 0%, 40% | HSV: 225°, 59%, 60%. Copy any format from the conversion table above.
What colors go well with #3E5598?
The complementary color is HSL(45, 42%, 42%). For a triadic harmony, use hues 225°, 345°, and 105°. For analogous combinations, try hues 195° and 255°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(225, 42%, 42%) in CSS?
As HSL: color: hsl(225, 42%, 42%); — As HEX: color: #3E5598; — As RGB: color: rgb(62, 85, 152); — Tailwind CSS: bg-[hsl(225,42%,42%)] — CSS variable: --color-primary: hsl(225, 42%, 42%);