According to DRAE 23rd Edition, ratio is a feminine noun. LanguageTool says that there’s a problem with “la ratio” and “una ratio” (implying it should be masculine, therefore “el ratio” and “un ratio”).
The Diccionario panhispánico de dudas 2005 warns that this mistake is common in Economics and Business.