HSL(230, 48%, 37%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(230,48%,37%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(230, 48%, 37%) | color: hsl(230, 48%, 37%) | |
| HEX | #31408C | color: #31408C | |
| RGB | rgb(49, 64, 140) | color: rgb(49, 64, 140) | |
| CMYK | cmyk(65%, 54%, 0%, 45%) | — | |
| HSV | hsv(230, 65%, 55%) | — | |
| HWB | hwb(230 19% 45%) | color: hwb(230 19% 45%) | |
| OKLCH | oklch(0.4035 0.1269 271.22) | color: oklch(0.4035 0.1269 271.22) | |
| Lab | lab(29.94 19.55 -44.22) | color: lab(29.94 19.55 -44.22) | |
| LCH | lch(29.94 48.35 293.85) | color: lch(29.94 48.35 293.85) |
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)
#37387A — rgb(55, 56, 122)
Deuteranopia (Green-blind)
#373675 — rgb(55, 54, 117)
Tritanopia (Blue-blind)
#326B68 — rgb(50, 107, 104)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(230, 48%, 37%);
text
color: hsl(230, 48%, 37%);
border
border: 2px solid hsl(230, 48%, 37%);
gradient light
background: linear-gradient(to right, hsl(230, 48%, 57%), hsl(230, 48%, 37%));
gradient dark
background: linear-gradient(to right, hsl(230, 48%, 37%), hsl(230, 48%, 17%))
hex
background-color: #31408C;
tailwind
bg-[hsl(230,48%,37%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(230, 48%, 37%, 0.4);
css variable
--color-primary: hsl(230, 48%, 37%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(230, 48%, 37%)?
HEX: #31408C | RGB: rgb(49, 64, 140) | CMYK: 65%, 54%, 0%, 45% | HSV: 230°, 65%, 55%. Copy any format from the conversion table above.
What colors go well with #31408C?
The complementary color is HSL(50, 48%, 37%). For a triadic harmony, use hues 230°, 350°, and 110°. For analogous combinations, try hues 200° and 260°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(230, 48%, 37%) in CSS?
As HSL: color: hsl(230, 48%, 37%); — As HEX: color: #31408C; — As RGB: color: rgb(49, 64, 140); — Tailwind CSS: bg-[hsl(230,48%,37%)] — CSS variable: --color-primary: hsl(230, 48%, 37%);