CSS named color

Deep Sky Blue #00BFFF

The CSS keyword deepskyblue is #00BFFF. It is a light soft blue in the blue family. In OKLCH it sits at lightness 0.755, chroma 0.153 and hue 231.6°.

Relative luminance
0.4448
OKLCH L · C · h
0.755 · 0.153 · 231.6
Best text
Black 9.89:1
Hue family
Blue

#00BFFF color codes

HEX
#00BFFF
RGB
rgb(0, 191, 255)
HSL
hsl(195, 100%, 50%)
OKLCH
oklch(0.755 0.153 231.6)
OKLab
oklab(0.755 -0.095 -0.120)
CIELAB (D65)
L* 72.55, a* -17.66, b* -42.54
XYZ (D65)
X 36.67, Y 44.48, Z 101.24
CMYK (naive)
cmyk(100%, 25%, 0%, 0%)

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 #00BFFF accessible?

Black text on it reaches 9.89:1, passing AAA. White text fails at 2.12:1.

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

    9.89:1

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

    2.12:1

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

    9.89:1

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

    2.12:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +40

Nearest versions that pass 4.5:1

  • For text on white

    #007FAB 4.54:1

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

  • For text on black

    #00BFFF 9.89:1

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

Checking another pair? Use the Contrast Checker.

Studio

Adjust #00BFFF 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 #00BFFF

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #00BFFF sits at step 300.

  1. 50#EAF8FF
    White
    1.08
    Black
    19.36
  2. 100#D5F0FF
    White
    1.18
    Black
    17.73
  3. 200#A7E1FF
    White
    1.41
    Black
    14.85
  4. 300This color#00BFFF
    White
    2.12
    Black
    9.89
  5. 400#00B0EB
    White
    2.49
    Black
    8.40
  6. 500#0092C4
    White
    3.55
    Black
    5.90
  7. 600#0079A3
    White
    4.92
    Black
    4.26
  8. 700#006083
    White
    6.99
    Black
    3.00
  9. 800#004660
    White
    10.26
    Black
    2.04
  10. 900#002D40
    White
    14.48
    Black
    1.44
  11. 950#001925
    White
    18.01
    Black
    1.16

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

Gamut

How vivid #00BFFF can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.153; #00BFFF uses 100% of it. Display P3, which many recent phones and laptops show, reaches 0.166 there: 8% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.153
sRGB edge
0.153
Display P3 edge
0.166
Rec. 2020 edge
0.168
Dominant wavelength
482 nm
Excitation purity
49%
Chromaticity
x 0.2011, y 0.2439
  • This color#00BFFF
  • Most vivid in sRGB#00BFFF
  • Most vivid in Display P3oklch(0.755 0.166 231.6)

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

Use the wider color where screens show it
.accent {
  color: #00bfff;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.2886 0.7399 1); }
}

Mixing

Mixing #00BFFF

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%#80DFFF
  • OKLab50%#A3E1FF
  • OKLCH50%#A6E0FF

Black #000000

  • sRGB50%#006080
  • OKLab50%#004863
  • OKLCH50%#004863

Its complement #FA904A

  • sRGB50%#7DA8A5
  • OKLab50%#AFAFAF
  • OKLCH50%#73C769
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #00bfff, white);
color: color-mix(in oklch, #00bfff 50%, white);

In use

#00BFFF 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:19.89:1 Passes
  • Link and body-size textText, 4.5:12.12:1 Fails
  • Large headingLarge text, 3:12.12:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.12:1 Fails

For text on this page, the nearest shade that passes is #007FAB 4.54:1

Dark page

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

Color vision

How #00BFFF looks with color blindness

Achromatopsia changes it most, ΔE2000 23.0; deuteranopia changes it least, 16.4.

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

    #9EBDFF ΔE2000 16.8

    Distinct

    Reads as light soft blue

  • Deuteranopia

    No working green (medium-wavelength) cones

    #81A9FE ΔE2000 16.4

    Distinct

    Reads as light soft blue

  • Tritanopia

    No working blue (short-wavelength) cones

    #00D0D5 ΔE2000 18.1

    Distinct

    Reads as light soft cyan

  • Achromatopsia

    No cone color vision; lightness only

    #B2B2B2 ΔE2000 23.0

    Distinct

    Reads as light gray

Pairing check

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

VisionThe pairΔE2000Verdict
Normal vision#00BFFF · #FA904A52.1Stays distinct
Protanopia#9EBDFF · #AE9D4248.9Stays distinct
Deuteranopia#81A9FE · #C8B44954.0Stays distinct
Tritanopia#00D0D5 · #FF7A8158.7Stays distinct
Achromatopsia#B2B2B2 · #ABABAB2.0Easily confused

Harmony

Color harmonies for #00BFFF

Its complement is #FA904A, a light soft orange, 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#00BFFF
  • Complement#FA904A

Complementary

Open in Harmony Studio
  • −30°#00C7D2
  • Base#00BFFF
  • +30°#83AFFF
  • Base#00BFFF
  • +120°#F783BA
  • +240°#B3B82C
  • Base#00BFFF
  • +150°#FF8786
  • +210°#E0A40F

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-deepskyblue: #00bfff;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        deepskyblue: '#00bfff',
      },
    },
  },
};

Tailwind v4 theme

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

@theme {
  --color-deepskyblue: oklch(0.755 0.153 231.6);
}

Design token (W3C DTCG)

{
  "color": {
    "deepskyblue": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0, 0.749, 1],
        "hex": "#00bfff"
      },
      "$description": "CSS named color deepskyblue"
    }
  }
}

SwiftUI color

import SwiftUI

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

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Deepskyblue = Color(0xFF00BFFF)
}

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 #00BFFF in the tools

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