Skip to content

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.

CadetBlue#5F9EA0

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

Color codes for CadetBlue
CSS keywordcadetblue
HEX#5F9EA0
RGBrgb(95, 158, 160)
HSLhsl(182, 25%, 50%)
HWBhwb(182 37% 37%)
OKLCHoklch(65.8% 0.065 198.3)
CMYK (naive, no ICC profile)cmyk(41%, 1%, 0%, 37%)
Decimal6,266,528
Hue familyBlues

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.

Contrast and accessibility
PairRatioAAAA largeAAAAAA largeAPCA Lc
Black text on cadetblue6.88:1PassPassFailPass46.8
White text on cadetblue3.05:1FailPassFailFail−62.6
Cadetblue text on white3.05:1FailPassFailFail57.2
Cadetblue text on black6.88:1PassPassFailPass−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)

  1. 5%
    #67a3a5
  2. 15%
    #77adae
  3. 25%
    #87b6b8
  4. 35%
    #97c0c1
  5. 45%
    #a7cacb
  6. 55%
    #b7d3d4
  7. 65%
    #c7ddde
  8. 75%
    #d7e7e7
  9. 85%
    #e7f0f1
  10. 95%
    #f7fafa

Shades (mixed with black)

  1. 5%
    #5a9698
  2. 15%
    #518688
  3. 25%
    #477778
  4. 35%
    #3e6768
  5. 45%
    #345758
  6. 55%
    #2b4748
  7. 65%
    #213738
  8. 75%
    #182828
  9. 85%
    #0e1818
  10. 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.

Color harmonies
HarmonyRotationColor
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

Nearest CSS named colors
ColorHEXΔE OK
lightseagreen#20b2aa6.1
lightslategray#7788996.4
slategray#7080908.3

Nearest Tailwind v4 colors

Nearest Tailwind v4 colors
ColorHEXΔE OK
slate-400#90a1b97.2
gray-400#99a1af7.6
teal-600#0096898.1

Code snippets

CSS
.element {
  color: cadetblue;
  background-color: #5f9ea0;
  border-color: rgb(95 158 160);
  outline-color: oklch(65.8% 0.065 198.3);
}
Tailwind CSS
<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 */
SwiftUI
import SwiftUI

extension Color {
  static let cadetblue = Color(red: 0.373, green: 0.620, blue: 0.627)
}
Jetpack Compose
import androidx.compose.ui.graphics.Color

val Cadetblue = Color(0xFF5F9EA0)
Flutter
import 'package:flutter/material.dart';

const cadetblue = Color(0xFF5F9EA0);
Android XML
<!-- 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.