CSS named color
CadetBlue #5F9EA0
CadetBlue (CSS keyword cadetblue) has the hex code #5F9EA0 and the RGB value rgb(95, 158, 160): a medium, muted cyan.
A muted, grayish teal. It is one of the calmer blue-greens in the list and is sometimes used for secondary buttons or chart series where a strong cyan would be too loud.
Color codes for CadetBlue
| CSS keyword | cadetblue |
|---|---|
| HEX | #5F9EA0 |
| RGB | rgb(95, 158, 160) |
| HSL | hsl(182, 25%, 50%) |
| HWB | hwb(182 37% 37%) |
| OKLCH | oklch(65.8% 0.065 198.3) |
| CMYK (naive, no ICC profile) | cmyk(41%, 1%, 0%, 37%) |
| Decimal | 6,266,528 |
| Hue family | Blues |
Contrast and accessibility
On cadetblue, black text has a contrast ratio of 6.88:1 and passes AA for normal text; white text reaches 3.05:1.
WCAG 2.2 contrast ratios (success criteria 1.4.3 and 1.4.6: AA needs 4.5:1 for normal text and 3:1 for large text, AAA needs 7:1 and 4.5:1). APCA Lc is the lightness contrast from the APCA-W3 0.0.98G model proposed for WCAG 3; a higher absolute value is more readable, and Lc 75 is its suggested minimum for body text.
| Pair | Ratio | AA | AA large | AAA | AAA large | APCA Lc |
|---|---|---|---|---|---|---|
| Black text on cadetblue | 6.88:1 | Pass | Pass | Fail | Pass | 46.8 |
| White text on cadetblue | 3.05:1 | Fail | Pass | Fail | Fail | −62.6 |
| Cadetblue text on white | 3.05:1 | Fail | Pass | Fail | Fail | 57.2 |
| Cadetblue text on black | 6.88:1 | Pass | Pass | Fail | Pass | −44.5 |
Tints and shades
Each step mixes cadetblue with white (tints) or black (shades) in gamma-encoded sRGB, the same result as color-mix(in srgb, cadetblue, white 25%) in CSS.
Tints (mixed with white)
- 5%
#67a3a5 - 15%
#77adae - 25%
#87b6b8 - 35%
#97c0c1 - 45%
#a7cacb - 55%
#b7d3d4 - 65%
#c7ddde - 75%
#d7e7e7 - 85%
#e7f0f1 - 95%
#f7fafa
Shades (mixed with black)
- 5%
#5a9698 - 15%
#518688 - 25%
#477778 - 35%
#3e6768 - 45%
#345758 - 55%
#2b4748 - 65%
#213738 - 75%
#182828 - 85%
#0e1818 - 95%
#050808
Color harmonies
Rotating the hue in OKLCH while keeping lightness and chroma, cadetblue's complementary color is #B68282 (close to rosybrown), its analogous colors are #699F8A and #669AB1, and its triadic partners are #A385AB and #A78D64. For text on top, black gives the higher contrast.
| Harmony | Rotation | Color |
|---|---|---|
| Complementary | +180° | #b68282 |
| Analogous | −30°, +30° | #699f8a#669ab1 |
| Triadic | +120°, +240° | #a385ab#a78d64 |
| Split-complementary | +150°, +210° | #b08298#b3866f |
Computed in OKLCH: the hue is rotated by 180° (complementary), ±30° (analogous), ±120° (triadic) and 180° ±30° (split-complementary) while lightness and chroma stay fixed. Results that fall outside sRGB are brought back with the CSS Color 4 gamut mapping algorithm. Because this uses OKLCH, the values differ from tools that rotate hue in HSL, but every color keeps the same perceived lightness.
Warm or cool?
CadetBlue is a cool color: its hue is 182° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
Nearest named and Tailwind colors
Distance is ΔE OK, the Euclidean distance in OKLab multiplied by 100. Values under about 2 are hard to tell apart side by side.
Nearest CSS named colors
| Color | HEX | ΔE OK |
|---|---|---|
| lightseagreen | #20b2aa | 6.1 |
| lightslategray | #778899 | 6.4 |
| slategray | #708090 | 8.3 |
Code snippets
.element {
color: cadetblue;
background-color: #5f9ea0;
border-color: rgb(95 158 160);
outline-color: oklch(65.8% 0.065 198.3);
}<div class="bg-[#5f9ea0] text-black">...</div>
/* or register it once in your CSS (Tailwind v4) */
@theme {
--color-cadetblue: #5f9ea0;
}
/* then use bg-cadetblue, text-cadetblue, border-cadetblue */import SwiftUI
extension Color {
static let cadetblue = Color(red: 0.373, green: 0.620, blue: 0.627)
}import androidx.compose.ui.graphics.Color
val Cadetblue = Color(0xFF5F9EA0)import 'package:flutter/material.dart';
const cadetblue = Color(0xFF5F9EA0);<!-- res/values/colors.xml -->
<color name="cadetblue">#5F9EA0</color>Frequently asked questions
- What is the hex code for cadetblue?
- The hex code for cadetblue is #5F9EA0. The same color is rgb(95, 158, 160), hsl(182, 25%, 50%) and oklch(65.8% 0.065 198.3), and in CSS you can also write the keyword cadetblue directly.
- Is cadetblue a warm or cool color?
- CadetBlue is a cool color: its hue is 182° on the HSL wheel, in the green, blue and violet range that is conventionally called cool.
- What colors go with cadetblue?
- Rotating the hue in OKLCH while keeping lightness and chroma, cadetblue's complementary color is #B68282 (close to rosybrown), its analogous colors are #699F8A and #669AB1, and its triadic partners are #A385AB and #A78D64. For text on top, black gives the higher contrast.
- Can you use white text on cadetblue?
- White text on cadetblue has a contrast ratio of 3.05:1, which passes AA only for large text (24 px, or 18.66 px bold, and up) under WCAG 2.2. Black text reaches 6.88:1 and passes AA for normal text but not AAA. In APCA terms that is Lc −62.6 for white and Lc 46.8 for black.
- What is the RGB value of cadetblue?
- CadetBlue is rgb(95, 158, 160): red 95, green 158 and blue 160 on the 0 to 255 scale, or 37.3%, 62.0% and 62.7%. As a decimal integer it is 6266528.
Last reviewed by Arielton Oberek.