I know this is a very old question but for anyone who is having same issue and stumble on this same issue. Please ensure you use the right syntax.
BLUE
fun main() {
println(getMnemonic(color.BLUE))
}
change to
fun main() {
println(getMnemonic(color.blue))
}