The border-left-color property sets the color of an element’s physical left border. It does not set width or style. You can also set this color with border-left or border-color.
The initial value is currentColor, so the left border matches the element’s text color until you override it. A visible border-left-style and non-zero border-left-width are still required for the color to show.
Baseline · Widely available.
Not deprecated. Standard <color> values are safe everywhere. Newer striped / <image-1D> border colors from CSS Borders Level 4 are not covered here and are not Baseline yet.
Syntax
CSS Syntax
syntax.css
border-left-color:<color> | initial | inherit;
Accepts any CSS color: named colors, hex, rgb(), hsl(), currentColor, or transparent.
Keep width and style. The left border still exists in the box model.
Set color to transparent. The stroke does not paint, so you do not see a line.
Space remains. Unlike border-left-style: none, a transparent colored border can still reserve its width.
Useful for alignment. Pair with other sides that stay opaque when you need matching padding without a visible left line.
Edge Cases & Pitfalls
If the left color seems missing, one of these is usually why.
style
Color alone never draws a border
You need a visible border-left-style and a non-zero width. Without them, border-left-color has nothing to paint.
shorthand
border-left can overwrite your color
A later border-left shorthand resets omitted parts, including color (back toward currentColor). Set the longhand after the shorthand if both are needed.
logical
Physical left is not always inline-start
In RTL layouts, use border-inline-start-color when the colored edge should follow the leading text side instead of the screen left.
default
Unset means currentColor
If you never set a left color, the border uses the element’s text color. That can look like a bug when you change text color and the border follows.
sides
Need every side the same color?
Use border-color. Reach for border-left-color when only the left edge should differ.
Compatibility
Browser Support
border-left-color is a browser CSS property for the box model. Node.js, Deno, and Bun do not apply it.
✓ Baseline · Widely available
border-left-color
Supported in all modern browsers and Internet Explorer. Standard color values have been part of CSS since the earliest versions.
100%Universal support
Google ChromeAll versions
Full support
Mozilla FirefoxAll versions
Full support
Apple SafariAll versions
Full support
Microsoft EdgeAll versions
Full support
OperaAll versions
Full support
Samsung InternetAll versions
Full support
Internet ExplorerAll versions
Full support
border-left-colorWidely supported
Bottom line: Safe everywhere for standard <color> values. Prefer the longhand when you only need to change the left color. It is not a runtime API.
Remember
Key Takeaways
Role: set the color of the physical left border only.
Needs a line first: visible style + width, then color.
Initial value:currentColor. Not inherited by default.
Shorthands:border-left and border-color can set the same color.
One line: use border-left-color when the left edge already has a border and you only need to change its paint.
Frequently Asked Questions
It sets the color of the border on the physical left edge only. It does not set width or style.
The initial value is currentColor, which uses the element's computed text color for the left border.
Color alone is not enough. You also need a visible border-left-style (such as solid) and a non-zero border-left-width, or use the border-left shorthand.
border-left-color always paints the physical left edge. border-inline-start-color follows writing direction, so in RTL text it usually maps to the right side.
Yes. border-left and border-color can set the left color. Use border-left-color when you want to change only the color after width and style are already set.
It is Baseline Widely available and works in all modern browsers and Internet Explorer. It is a browser CSS property, not a Node.js feature.