HSL(245, 87%, 21%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(245,87%,21%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(245, 87%, 21%) | color: hsl(245, 87%, 21%) | |
| HEX | #0F0764 | color: #0F0764 | |
| RGB | rgb(15, 7, 100) | color: rgb(15, 7, 100) | |
| CMYK | cmyk(85%, 93%, 0%, 61%) | — | |
| HSV | hsv(245, 93%, 39%) | — | |
| HWB | hwb(245 3% 61%) | color: hwb(245 3% 61%) | |
| OKLCH | oklch(0.2436 0.147 271.06) | color: oklch(0.2436 0.147 271.06) | |
| Lab | lab(10.36 36.5 -50.83) | color: lab(10.36 36.5 -50.83) | |
| LCH | lch(10.36 62.58 305.68) | color: lch(10.36 62.58 305.68) |
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)
#0C0B4D — rgb(12, 11, 77)
Deuteranopia (Green-blind)
#0C0D48 — rgb(12, 13, 72)
Tritanopia (Blue-blind)
#0F3C38 — rgb(15, 60, 56)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(245, 87%, 21%);
text
color: hsl(245, 87%, 21%);
border
border: 2px solid hsl(245, 87%, 21%);
gradient light
background: linear-gradient(to right, hsl(245, 87%, 41%), hsl(245, 87%, 21%));
gradient dark
background: linear-gradient(to right, hsl(245, 87%, 21%), hsl(245, 87%, 1%))
hex
background-color: #0F0764;
tailwind
bg-[hsl(245,87%,21%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(245, 87%, 21%, 0.4);
css variable
--color-primary: hsl(245, 87%, 21%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(245, 87%, 21%)?
HEX: #0F0764 | RGB: rgb(15, 7, 100) | CMYK: 85%, 93%, 0%, 61% | HSV: 245°, 93%, 39%. Copy any format from the conversion table above.
What colors go well with #0F0764?
The complementary color is HSL(65, 87%, 21%). For a triadic harmony, use hues 245°, 5°, and 125°. For analogous combinations, try hues 215° and 275°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(245, 87%, 21%) in CSS?
As HSL: color: hsl(245, 87%, 21%); — As HEX: color: #0F0764; — As RGB: color: rgb(15, 7, 100); — Tailwind CSS: bg-[hsl(245,87%,21%)] — CSS variable: --color-primary: hsl(245, 87%, 21%);