#021B1F#021B1F

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

Color values

HEX#021B1F
RGBrgb(2, 27, 31)
HSLhsl(188, 88%, 6%)
HSVhsv(188, 94%, 12%)
CMYKcmyk(93.5%, 12.9%, 0%, 87.8%)
CIE-LABlab(8.09, -7.66, -5.70)
CIE-LCHlch(8.09, 9.55, 216.63°)
OKLaboklab(20.45% -0.0284 -0.0159)
OKLCHoklch(20.45% 0.033 209.1)
XYZxyz(0.6642, 0.8956, 1.4339)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021B1F #1F0602
analogous
#021F15 #021B1F #020D1F
triadic
#021B1F #1F021B #1B1F02
tetradic
#021B1F #15021F #1F0602 #0D1F02
square
#021B1F #15021F #1F0602 #0D1F02
split-complementary
#021B1F #1F020D #1F1502
monochromatic
#02191D #02191D #021B1F #064D58 #097F92

Accessibility & contrast

On white

17.81
#021B1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#021B1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021B1F
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021B1F#FFFFFF#000000##FFFFFF
##021B1F1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171A1F
Deuteranopia (green-blind)
#13161F
Tritanopia (blue-blind)
#001D1C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #021b1f;
/* rgb */ color: rgb(2, 27, 31);
/* oklch */ color: oklch(20.4% 0.033 209.1);
Tailwind
colors: {
  custom: {
    50: '#47575a',
    500: '#021b1f',
    950: '#000000',
  },
}
SCSS
$custom: #021b1f;
$custom-light: #47575a;
$custom-dark: #000000;
JSON
{
  "hex": "#021b1f",
  "rgb": {
    "r": 2,
    "g": 27,
    "b": 31
  },
  "hsl": {
    "h": 188.276,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.20446,
    "c": 0.03256,
    "h": 209.1
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#021B1F
secondary
#652318
accent
#472AFE
background
#F4F5F5
surface
#E6E9E9
border
#C2C5C5
text
#000303
muted
#777878

Preview Lab

Preview with #021B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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