I am having a navbar with a search functionality that has two buttons "Search" and "Advanced". My primary color is blue #2a7ab0 I use that for buttons and some text. Text color on the blue button is white #fff. For risky actions, either a text or a button I am using red #e00000. My question is whether I should use orange #d43900 as a secondary button for "advanced". Will there be any confusion between it and the red for risky actions? I am putting in mind color blind people. I tried green, but it was either too dark and ugly or too light for the white text. I'd consider other colors other than purples and pinks.
I'd keep your primary action as is, but make your secondary action a link using the same colour as the primary button.
This way your secondary action...
- is less prominant and not so 'in your face', letting users concentrate on primary actions
- uses existing colour scheme rather than adding a new colour for no good reason
- differentiates the type of action i.e. 'perform the search' , 'take me to advanced use'
See also - Luke Wroblewski's research into Primary & Secondary Actions in Web Forms.
Accessibility-wise orange and red are to close to distinguish. You can differentiate them by lightness contrast.
It would be better to use a clear search-field including label, hint-text within the input-field and helper text underneath.
Default icons helps users to quickly recognize the functionality. The advanced settings button is now placed next to the main search field, making it a more in-depth option.