#08171F#08171F

#08171F is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 19.5% C 0.026 H 233.4°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#08171F
RGBrgb(8, 23, 31)
HSLhsl(201, 59%, 8%)
HSVhsv(201, 74%, 12%)
CMYKcmyk(74.2%, 25.8%, 0%, 87.8%)
CIE-LABlab(6.89, -2.94, -7.48)
CIE-LCHlch(6.89, 8.04, 248.56°)
OKLaboklab(19.55% -0.0157 -0.0211)
OKLCHoklch(19.55% 0.026 233.4)
XYZxyz(0.6538, 0.7633, 1.4089)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08171F #1F1008
analogous
#081F1B #08171F #080B1F
triadic
#08171F #1F0817 #171F08
tetradic
#08171F #1B081F #1F1008 #0B1F08
square
#08171F #1B081F #1F1008 #0B1F08
split-complementary
#08171F #1F080B #1F1B08
monochromatic
#061218 #061218 #08171F #153B50 #215F80

Accessibility & contrast

On white

18.22
#08171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#08171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08171F
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08171F#FFFFFF#000000##FFFFFF
##08171F1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13171F
Deuteranopia (green-blind)
#10141F
Tritanopia (blue-blind)
#00191A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #08171f;
/* rgb */ color: rgb(8, 23, 31);
/* oklch */ color: oklch(19.5% 0.026 233.4);
Tailwind
colors: {
  custom: {
    50: '#4a535a',
    500: '#08171f',
    950: '#000000',
  },
}
SCSS
$custom: #08171f;
$custom-light: #4a535a;
$custom-dark: #000000;
JSON
{
  "hex": "#08171f",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 200.87,
    "s": 58.974,
    "l": 7.647
  },
  "oklch": {
    "l": 0.19547,
    "c": 0.0263,
    "h": 233.4
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#08171F
secondary
#5C3926
accent
#7C46E2
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010203
muted
#777878

Preview Lab

Preview with #08171F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#08171F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva