cadetblue — #5F9EA0
#5F9EA0
rgb(95, 158, 160) · hsl(182, 25%, 50%) · CSS keyword cadetblue
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| cadetblue on white | 3.05:1 | — | AA |
| cadetblue on black | 6.88:1 | AA | AA |
As a background, cadetblue takes black text: 6.88:1 against 3.05:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.
Using it
color: cadetblue;
color: #5f9ea0;
color: rgb(95 158 160);
All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.
Colours close to cadetblue
- lightslategray — #778899
- slategray — #708090
- steelblue — #4682B4
- cornflowerblue — #6495ED
- mediumseagreen — #3CB371
- gray — #808080
Frequently asked questions
What is the hex code for cadetblue?
The hex code for cadetblue is #5F9EA0 — RGB 95, 158, 160.
Can I use cadetblue for text?
Only for large text. cadetblue reaches 3.05:1 against white — enough for the 3:1 of headings at 24px or 18.5px bold, short of the 4.5:1 body text needs.
Should text on cadetblue be black or white?
Black — 6.88:1 against 3.05:1 the other way.
Other named colours
- chartreuse — #7FFF00
- chocolate — #D2691E
- coral — #FF7F50
- cornflowerblue — #6495ED
- cornsilk — #FFF8DC
- crimson — #DC143C
- cyan — #00FFFF
- darkblue — #00008B
- darkcyan — #008B8B
- darkgoldenrod — #B8860B
- darkgray — #A9A9A9
- darkgreen — #006400
#5F9EA0 in full — tints, shades and harmonies · All named colours · Colour reference