HSL(237, 97%, 20%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(237,97%,20%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(237, 97%, 20%) | color: hsl(237, 97%, 20%) | |
| HEX | #020664 | color: #020664 | |
| RGB | rgb(2, 6, 100) | color: rgb(2, 6, 100) | |
| CMYK | cmyk(98%, 94%, 0%, 61%) | — | |
| HSV | hsv(238, 98%, 39%) | — | |
| HWB | hwb(238 1% 61%) | color: hwb(238 1% 61%) | |
| OKLCH | oklch(0.2359 0.1518 265.15) | color: oklch(0.2359 0.1518 265.15) | |
| Lab | lab(9.51 36.54 -52.27) | color: lab(9.51 36.54 -52.27) | |
| LCH | lch(9.51 63.78 304.96) | color: lch(9.51 63.78 304.96) |
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)
#04044D — rgb(4, 4, 77)
Deuteranopia (Green-blind)
#040348 — rgb(4, 3, 72)
Tritanopia (Blue-blind)
#023B37 — rgb(2, 59, 55)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(237, 97%, 20%);
text
color: hsl(237, 97%, 20%);
border
border: 2px solid hsl(237, 97%, 20%);
gradient light
background: linear-gradient(to right, hsl(237, 97%, 40%), hsl(237, 97%, 20%));
gradient dark
background: linear-gradient(to right, hsl(237, 97%, 20%), hsl(237, 97%, 0%))
hex
background-color: #020664;
tailwind
bg-[hsl(237,97%,20%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(237, 97%, 20%, 0.4);
css variable
--color-primary: hsl(237, 97%, 20%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(237, 97%, 20%)?
HEX: #020664 | RGB: rgb(2, 6, 100) | CMYK: 98%, 94%, 0%, 61% | HSV: 238°, 98%, 39%. Copy any format from the conversion table above.
What colors go well with #020664?
The complementary color is HSL(57, 97%, 20%). For a triadic harmony, use hues 237°, 357°, and 117°. For analogous combinations, try hues 207° and 267°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(237, 97%, 20%) in CSS?
As HSL: color: hsl(237, 97%, 20%); — As HEX: color: #020664; — As RGB: color: rgb(2, 6, 100); — Tailwind CSS: bg-[hsl(237,97%,20%)] — CSS variable: --color-primary: hsl(237, 97%, 20%);