CSS named color

Dark Cyan #008B8B

The CSS keyword darkcyan is #008B8B. It is a muted cyan in the cyan family. In OKLCH it sits at lightness 0.577, chroma 0.098 and hue 194.8°.

Relative luminance
0.2033
OKLCH L · C · h
0.577 · 0.098 · 194.8
Best text
Black 5.06:1
Hue family
Cyan

#008B8B color codes

HEX
#008B8B
RGB
rgb(0, 139, 139)
HSL
hsl(180, 100%, 27%)
OKLCH
oklch(0.577 0.098 194.8)
OKLab
oklab(0.577 -0.095 -0.025)
CIELAB (D65)
L* 52.21, a* -30.62, b* -9.00
XYZ (D65)
X 13.89, Y 20.33, Z 27.61
CMYK (naive)
cmyk(100%, 0%, 0%, 45%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #008B8B accessible?

Black text on it reaches 5.06:1, passing AA. White text manages only 4.14:1, enough for large text only.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    5.06:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc +36
  • White text on it

    4.14:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc −73
  • As text on black

    5.06:1

    • AA passes
    • AA large passes
    • AAA fails
    • APCA Lc −33
  • As text on white

    4.14:1

    • AA fails
    • AA large passes
    • AAA fails
    • APCA Lc +67

Nearest versions that pass 4.5:1

  • For text on white

    #008484 4.53:1

    Darkening its OKLCH lightness from 0.58 to 0.56 reaches 4.53:1 on white, keeping the hue.

  • For text on black

    #008B8B 5.06:1

    It already reaches 5.06:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #008B8B live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #008B8B

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #008B8B sits at step 600.

  1. 50#D4FFFE
    White
    1.07
    Black
    19.53
  2. 100#A9FDFC
    White
    1.15
    Black
    18.14
  3. 200#90EAE9
    White
    1.38
    Black
    15.13
  4. 300#6FD1D0
    White
    1.79
    Black
    11.70
  5. 400#4AB4B4
    White
    2.47
    Black
    8.47
  6. 500#229898
    White
    3.49
    Black
    6.01
  7. 600This color#008B8B
    White
    4.14
    Black
    5.06
  8. 700#006565
    White
    6.88
    Black
    3.04
  9. 800#004A4A
    White
    10.10
    Black
    2.07
  10. 900#003030
    White
    14.32
    Black
    1.46
  11. 950#001B1B
    White
    17.90
    Black
    1.17

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #008B8B can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.098; #008B8B uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.132 there: 34% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.098
sRGB edge
0.098
Display P3 edge
0.132
Rec. 2020 edge
0.215
Dominant wavelength
491 nm
Excitation purity
32%
Chromaticity
x 0.2247, y 0.3288
  • This color#008B8B
  • Most vivid in sRGB#008B8B
  • Most vivid in Display P3oklch(0.577 0.132 194.8)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #008b8b;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0 0.5544 0.5631); }
}

Mixing

Mixing #008B8B

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#80C5C5
  • OKLab50%#96C4C4
  • OKLCH50%#96C4C4

Black #000000

  • sRGB50%#004646
  • OKLab50%#003232
  • OKLCH50%#003232

Its complement #AB6067

  • sRGB50%#567679
  • OKLab50%#797979
  • OKLCH50%#7371B1
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #008b8b, white);
color: color-mix(in oklch, #008b8b 50%, white);

In use

#008B8B in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:15.06:1 Passes
  • Link and body-size textText, 4.5:14.14:1 Fails
  • Large headingLarge text, 3:14.14:1 Passes
  • Icons, borders and focus ringsNon-text, 3:14.14:1 Passes

For text on this page, the nearest shade that passes is #008484 4.53:1

Dark page

  • Button labelText, 4.5:15.06:1 Passes
  • Link and body-size textText, 4.5:14.51:1 Passes
  • Large headingLarge text, 3:14.51:1 Passes
  • Icons, borders and focus ringsNon-text, 3:14.51:1 Passes

Color vision

How #008B8B looks with color blindness

Deuteranopia changes it most, ΔE2000 23.6; tritanopia changes it least, 2.6.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #81838B ΔE2000 23.4

    Distinct

    Reads as gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #70778C ΔE2000 23.6

    Distinct

    Reads as grayish blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #00908B ΔE2000 2.6

    Close match

    Reads as soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #7C7C7C ΔE2000 22.0

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #AB6067. Their lightness contrast is only 1.10:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#008B8B · #AB606747.4Stays distinct
Protanopia#81838B · #6E6D6711.9Stays distinct
Deuteranopia#70778C · #817B6620.9Stays distinct
Tritanopia#00908B · #B8586352.6Stays distinct
Achromatopsia#7C7C7C · #7676762.4Easily confused

Harmony

Color harmonies for #008B8B

Its complement is #AB6067, a muted pink, on the warm side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#008B8B
  • Complement#AB6067

Complementary

Open in Harmony Studio
  • −30°#348B6A
  • Base#008B8B
  • +30°#2385A5
  • Base#008B8B
  • +120°#8F67A1
  • +240°#9B702E
  • Base#008B8B
  • +150°#A26187
  • +210°#A96546

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-darkcyan: #008b8b;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        darkcyan: '#008b8b',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-darkcyan: oklch(0.577 0.098 194.8);
}

Design token (W3C DTCG)

{
  "color": {
    "darkcyan": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0, 0.5451, 0.5451],
        "hex": "#008b8b"
      },
      "$description": "CSS named color darkcyan"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let darkcyan = Color(.sRGB, red: 0.000, green: 0.545, blue: 0.545, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Darkcyan = Color(0xFF008B8B)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #008B8B in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.