#021F1E#021F1E

#021F1E is a very dark, muted teal. Relative luminance 0.011; OKLCH L 21.7% C 0.035 H 191.7°. Best body text is #FFFFFF at 17.25:1 contrast (WCAG AA passes).

Color values

HEX#021F1E
RGBrgb(2, 31, 30)
HSLhsl(178, 88%, 6%)
HSVhsv(178, 94%, 12%)
CMYKcmyk(93.5%, 0%, 3.2%, 87.8%)
CIE-LABlab(9.69, -11.08, -2.54)
CIE-LCHlch(9.69, 11.37, 192.90°)
OKLaboklab(21.73% -0.0343 -0.0071)
OKLCHoklch(21.73% 0.035 191.7)
XYZxyz(0.7493, 1.0865, 1.3983)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F1E #1F0203
analogous
#021F10 #021F1E #02121F
triadic
#021F1E #1E021F #1F1E02
tetradic
#021F1E #10021F #1F0203 #121F02
square
#021F1E #10021F #1F0203 #121F02
split-complementary
#021F1E #1F0212 #1F1002
monochromatic
#021D1C #021D1C #021F1E #065856 #09928D

Accessibility & contrast

On white

17.25
#021F1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#021F1E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021F1E
17.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F1E#FFFFFF#000000##FFFFFF
##021F1E1.0017.251.2217.25
#FFFFFF17.251.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1D1E
Deuteranopia (green-blind)
#18191E
Tritanopia (blue-blind)
#00201F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #021f1e;
/* rgb */ color: rgb(2, 31, 30);
/* oklch */ color: oklch(21.7% 0.035 191.7);
Tailwind
colors: {
  custom: {
    50: '#475a59',
    500: '#021f1e',
    950: '#000000',
  },
}
SCSS
$custom: #021f1e;
$custom-light: #475a59;
$custom-dark: #000000;
JSON
{
  "hex": "#021f1e",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 30
  },
  "hsl": {
    "h": 177.931,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.21731,
    "c": 0.035,
    "h": 191.7
  },
  "luminance": 0.01087
}

Semantic roles & 50–950 ramp

primary
#021F1E
secondary
#65181B
accent
#2A31FE
background
#F4F5F5
surface
#E6E9E9
border
#C2C5C5
text
#000403
muted
#777978

Preview Lab

Preview with #021F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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