#02170F#02170F

#02170F is a very dark, muted teal. Relative luminance 0.007; OKLCH L 18.3% C 0.034 H 166.7°. Best body text is #FFFFFF at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#02170F
RGBrgb(2, 23, 15)
HSLhsl(157, 84%, 5%)
HSVhsv(157, 91%, 9%)
CMYKcmyk(91.3%, 0%, 34.8%, 91%)
CIE-LABlab(5.96, -8.59, 2.31)
CIE-LCHlch(5.96, 8.90, 164.96°)
OKLaboklab(18.34% -0.0329 0.0078)
OKLCHoklch(18.34% 0.034 166.7)
XYZxyz(0.4176, 0.6601, 0.5573)
Luminance0.0066 (WCAG relative)
Temperatureneutral
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#02170F #17020A
analogous
#021705 #02170F #021517
triadic
#02170F #0F0217 #170F02
tetradic
#02170F #050217 #17020A #151702
square
#02170F #050217 #17020A #151702
split-complementary
#02170F #170215 #170502
monochromatic
#021C12 #021C12 #021C12 #074F34 #0C8858

Accessibility & contrast

On white

18.55
#02170F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#02170F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #02170F
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##02170F#FFFFFF#000000##FFFFFF
##02170F1.0018.551.1318.55
#FFFFFF18.551.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16150F
Deuteranopia (green-blind)
#131210
Tritanopia (blue-blind)
#001715
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #02170f;
/* rgb */ color: rgb(2, 23, 15);
/* oklch */ color: oklch(18.3% 0.034 166.7);
Tailwind
colors: {
  custom: {
    50: '#47534e',
    500: '#02170f',
    950: '#000000',
  },
}
SCSS
$custom: #02170f;
$custom-light: #47534e;
$custom-dark: #000000;
JSON
{
  "hex": "#02170f",
  "rgb": {
    "r": 2,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 157.143,
    "s": 84,
    "l": 4.902
  },
  "oklch": {
    "l": 0.1834,
    "c": 0.03384,
    "h": 166.7
  },
  "luminance": 0.0066
}

Semantic roles & 50–950 ramp

primary
#02170F
secondary
#5D1832
accent
#2E7CFA
background
#F4F4F4
surface
#E6E7E7
border
#C2C3C3
text
#000201
muted
#777877

Preview Lab

Preview with #02170F

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

Preview Lab → · Contrast checker → · Palette generator →

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