HSL(228, 21%, 19%)
Blue — Blue color
Adjust Color
Color Information
Color Name
Blue
Color Family
Blue
Warm / Cool
🔵 Cool
Temperature
9000K
CSS Class
bg-[hsl(228,21%,19%)]
Color Conversions
| Format | Value | CSS Usage | |
|---|---|---|---|
| HSL | hsl(228, 21%, 19%) | color: hsl(228, 21%, 19%) | |
| HEX | #262A3B | color: #262A3B | |
| RGB | rgb(38, 42, 59) | color: rgb(38, 42, 59) | |
| CMYK | cmyk(36%, 29%, 0%, 77%) | — | |
| HSV | hsv(229, 36%, 23%) | — | |
| HWB | hwb(229 15% 77%) | color: hwb(229 15% 77%) | |
| OKLCH | oklch(0.2889 0.0317 274.02) | color: oklch(0.2889 0.0317 274.02) | |
| Lab | lab(17.38 3.13 -11.43) | color: lab(17.38 3.13 -11.43) | |
| LCH | lch(17.38 11.85 285.31) | color: lch(17.38 11.85 285.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)
#282837 — rgb(40, 40, 55)
Deuteranopia (Green-blind)
#282736 — rgb(40, 39, 54)
Tritanopia (Blue-blind)
#263433 — rgb(38, 52, 51)
Tints & Shades
CSS Code Snippets
background
background-color: hsl(228, 21%, 19%);
text
color: hsl(228, 21%, 19%);
border
border: 2px solid hsl(228, 21%, 19%);
gradient light
background: linear-gradient(to right, hsl(228, 21%, 39%), hsl(228, 21%, 19%));
gradient dark
background: linear-gradient(to right, hsl(228, 21%, 19%), hsl(228, 21%, 0%))
hex
background-color: #262A3B;
tailwind
bg-[hsl(228,21%,19%)]
box shadow
box-shadow: 0 4px 6px -1px hsl(228, 21%, 19%, 0.4);
css variable
--color-primary: hsl(228, 21%, 19%);
Related Colors
Use Cases for Blue
Frequently Asked Questions
What are all the color codes for HSL(228, 21%, 19%)?
HEX: #262A3B | RGB: rgb(38, 42, 59) | CMYK: 36%, 29%, 0%, 77% | HSV: 229°, 36%, 23%. Copy any format from the conversion table above.
What colors go well with #262A3B?
The complementary color is HSL(48, 21%, 19%). For a triadic harmony, use hues 228°, 348°, and 108°. For analogous combinations, try hues 198° and 258°. See the Color Harmony section above for complete palettes with previews.
How do I use HSL(228, 21%, 19%) in CSS?
As HSL: color: hsl(228, 21%, 19%); — As HEX: color: #262A3B; — As RGB: color: rgb(38, 42, 59); — Tailwind CSS: bg-[hsl(228,21%,19%)] — CSS variable: --color-primary: hsl(228, 21%, 19%);