HSL(248, 31%, 19%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(248,31%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(248, 31%, 19%) | color: hsl(248, 31%, 19%) | |
| HEX | #25213F | color: #25213F | |
| RGB | rgb(37, 33, 63) | color: rgb(37, 33, 63) | |
| CMYK | cmyk(41%, 48%, 0%, 75%) | — | |
| HSV | hsv(248, 48%, 25%) | — | |
| HWB | hwb(248 13% 75%) | color: hwb(248 13% 75%) | |
| OKLCH | oklch(0.2682 0.0549 288.24) | color: oklch(0.2682 0.0549 288.24) | |
| Lab | lab(14.62 10.58 -18.54) | color: lab(14.62 10.58 -18.54) | |
| LCH | lch(14.62 21.35 299.71) | color: lch(14.62 21.35 299.71) |
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)
#232338 — rgb(35, 35, 56)
Deuteranopia (Green-blind)
#242436 — rgb(36, 36, 54)
Tritanopia (Blue-blind)
#253231 — rgb(37, 50, 49)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(248, 31%, 19%);
text
color: hsl(248, 31%, 19%);
border
border: 2px solid hsl(248, 31%, 19%);
gradient light
background: linear-gradient(to right, hsl(248, 31%, 39%), hsl(248, 31%, 19%));
gradient dark
background: linear-gradient(to right, hsl(248, 31%, 19%), hsl(248, 31%, 0%))
hex
background-color: #25213F;
tailwind
bg-[hsl(248,31%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(248, 31%, 19%, 0.4);
css variable
--color-primary: hsl(248, 31%, 19%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(248, 31%, 19%)?
HEX: #25213F | RGB: rgb(37, 33, 63) | CMYK: 41%, 48%, 0%, 75% | HSV: 248°, 48%, 25%. Copy any format from the conversion table above.
What colors go well with #25213F?
The complementary color is HSL(68, 31%, 19%). For a triadic harmony, use hues 248°, 8°, and 128°. For analogous combinations, try hues 218° and 278°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(248, 31%, 19%) in CSS?
As HSL: color: hsl(248, 31%, 19%); — As HEX: color: #25213F; — As RGB: color: rgb(37, 33, 63); — Tailwind CSS: bg-[hsl(248,31%,19%)] — CSS variable: --color-primary: hsl(248, 31%, 19%);