HSL(212, 62%, 37%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(212,62%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(212, 62%, 37%) | color: hsl(212, 62%, 37%) | |
| HEX | #245A99 | color: #245A99 | |
| RGB | rgb(36, 90, 153) | color: rgb(36, 90, 153) | |
| CMYK | cmyk(76%, 41%, 0%, 40%) | — | |
| HSV | hsv(212, 76%, 60%) | — | |
| HWB | hwb(212 14% 40%) | color: hwb(212 14% 40%) | |
| OKLCH | oklch(0.465 0.1172 254.4) | color: oklch(0.465 0.1172 254.4) | |
| Lab | lab(37.82 5.1 -39.52) | color: lab(37.82 5.1 -39.52) | |
| LCH | lch(37.82 39.85 277.35) | color: lch(37.82 39.85 277.35) |
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)
#3B3C8A — rgb(59, 60, 138)
Deuteranopia (Green-blind)
#383486 — rgb(56, 52, 134)
Tritanopia (Blue-blind)
#277E7B — rgb(39, 126, 123)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(212, 62%, 37%);
text
color: hsl(212, 62%, 37%);
border
border: 2px solid hsl(212, 62%, 37%);
gradient light
background: linear-gradient(to right, hsl(212, 62%, 57%), hsl(212, 62%, 37%));
gradient dark
background: linear-gradient(to right, hsl(212, 62%, 37%), hsl(212, 62%, 17%))
hex
background-color: #245A99;
tailwind
bg-[hsl(212,62%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(212, 62%, 37%, 0.4);
css variable
--color-primary: hsl(212, 62%, 37%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(212, 62%, 37%)?
HEX: #245A99 | RGB: rgb(36, 90, 153) | CMYK: 76%, 41%, 0%, 40% | HSV: 212°, 76%, 60%. Copy any format from the conversion table above.
What colors go well with #245A99?
The complementary color is HSL(32, 62%, 37%). For a triadic harmony, use hues 212°, 332°, and 92°. For analogous combinations, try hues 182° and 242°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(212, 62%, 37%) in CSS?
As HSL: color: hsl(212, 62%, 37%); — As HEX: color: #245A99; — As RGB: color: rgb(36, 90, 153); — Tailwind CSS: bg-[hsl(212,62%,37%)] — CSS variable: --color-primary: hsl(212, 62%, 37%);