HSL(213, 50%, 33%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(213,50%,33%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(213, 50%, 33%) | color: hsl(213, 50%, 33%) | |
| HEX | #2A507E | color: #2A507E | |
| RGB | rgb(42, 80, 126) | color: rgb(42, 80, 126) | |
| CMYK | cmyk(67%, 37%, 0%, 51%) | — | |
| HSV | hsv(213, 67%, 49%) | — | |
| HWB | hwb(213 16% 51%) | color: hwb(213 16% 51%) | |
| OKLCH | oklch(0.4264 0.0884 254.36) | color: oklch(0.4264 0.0884 254.36) | |
| Lab | lab(33.43 2.26 -30.02) | color: lab(33.43 2.26 -30.02) | |
| LCH | lch(33.43 30.1 274.31) | color: lch(33.43 30.1 274.31) |
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)
#3A3B73 — rgb(58, 59, 115)
Deuteranopia (Green-blind)
#383570 — rgb(56, 53, 112)
Tritanopia (Blue-blind)
#2C6A68 — rgb(44, 106, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(213, 50%, 33%);
text
color: hsl(213, 50%, 33%);
border
border: 2px solid hsl(213, 50%, 33%);
gradient light
background: linear-gradient(to right, hsl(213, 50%, 53%), hsl(213, 50%, 33%));
gradient dark
background: linear-gradient(to right, hsl(213, 50%, 33%), hsl(213, 50%, 13%))
hex
background-color: #2A507E;
tailwind
bg-[hsl(213,50%,33%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(213, 50%, 33%, 0.4);
css variable
--color-primary: hsl(213, 50%, 33%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(213, 50%, 33%)?
HEX: #2A507E | RGB: rgb(42, 80, 126) | CMYK: 67%, 37%, 0%, 51% | HSV: 213°, 67%, 49%. Copy any format from the conversion table above.
What colors go well with #2A507E?
The complementary color is HSL(33, 50%, 33%). For a triadic harmony, use hues 213°, 333°, and 93°. For analogous combinations, try hues 183° and 243°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(213, 50%, 33%) in CSS?
As HSL: color: hsl(213, 50%, 33%); — As HEX: color: #2A507E; — As RGB: color: rgb(42, 80, 126); — Tailwind CSS: bg-[hsl(213,50%,33%)] — CSS variable: --color-primary: hsl(213, 50%, 33%);