I know that the following sentence is valid.
•If I had known about the matter, I would have told you.
This means that at a point in the past, I did not know about the matter and I didn't/couldn't tell you (because I didn't even know).
Does the next sentence work?
•If I knew about the matter, I would have told you by now.
Let's say you have a friend who wants to know about everything. She or he asks you if you currently know about a particular matter, which you don't know anything about. But you know that you would have told your friend if you actually knew about that.
In the above sentence, the if-clause uses a past tense because it is about the present. However, the main clause uses past perfect because this is about the past as in you would have done it.
To me this makes sense and in this particular situation, saying the below sentence sounds weird:
•If I had known about the matter, I would have told you.
because you are referring to whether you know about the matter now, but not in the past.