#021C1F#021C1F

#021C1F is a very dark, muted teal. Relative luminance 0.009; OKLCH L 20.8% C 0.033 H 205.4°. Best body text is #FFFFFF at 17.67:1 contrast (WCAG AA passes).

Color values

HEX#021C1F
RGBrgb(2, 28, 31)
HSLhsl(186, 88%, 6%)
HSVhsv(186, 94%, 12%)
CMYKcmyk(93.5%, 9.7%, 0%, 87.8%)
CIE-LABlab(8.50, -8.48, -5.07)
CIE-LCHlch(8.50, 9.88, 210.88°)
OKLaboklab(20.78% -0.0297 -0.0141)
OKLCHoklch(20.78% 0.033 205.4)
XYZxyz(0.6875, 0.9423, 1.4417)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021C1F #1F0502
analogous
#021F14 #021C1F #020E1F
triadic
#021C1F #1F021C #1C1F02
tetradic
#021C1F #14021F #1F0502 #0E1F02
square
#021C1F #14021F #1F0502 #0E1F02
split-complementary
#021C1F #1F020E #1F1402
monochromatic
#021A1D #021A1D #021C1F #065058 #098492

Accessibility & contrast

On white

17.67
#021C1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#021C1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021C1F
17.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021C1F#FFFFFF#000000##FFFFFF
##021C1F1.0017.671.1917.67
#FFFFFF17.671.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191A1F
Deuteranopia (green-blind)
#14171F
Tritanopia (blue-blind)
#001E1D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #021c1f;
/* rgb */ color: rgb(2, 28, 31);
/* oklch */ color: oklch(20.8% 0.033 205.4);
Tailwind
colors: {
  custom: {
    50: '#47585a',
    500: '#021c1f',
    950: '#000000',
  },
}
SCSS
$custom: #021c1f;
$custom-light: #47585a;
$custom-dark: #000000;
JSON
{
  "hex": "#021c1f",
  "rgb": {
    "r": 2,
    "g": 28,
    "b": 31
  },
  "hsl": {
    "h": 186.207,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.20778,
    "c": 0.03293,
    "h": 205.4
  },
  "luminance": 0.00942
}

Semantic roles & 50–950 ramp

primary
#021C1F
secondary
#652018
accent
#402AFE
background
#F4F5F5
surface
#E6E9E9
border
#C2C5C5
text
#000303
muted
#777878

Preview Lab

Preview with #021C1F

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

Preview Lab → · Contrast checker → · Palette generator →

#021C1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva