#021F18#021F18

#021F18 is a very dark, muted teal. Relative luminance 0.011; OKLCH L 21.5% C 0.038 H 174.0°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#021F18
RGBrgb(2, 31, 24)
HSLhsl(166, 88%, 6%)
HSVhsv(166, 94%, 12%)
CMYKcmyk(93.5%, 0%, 22.6%, 87.8%)
CIE-LABlab(9.47, -12.98, 1.58)
CIE-LCHlch(9.47, 13.07, 173.04°)
OKLaboklab(21.48% -0.038 0.004)
OKLCHoklch(21.48% 0.038 174)
XYZxyz(0.6798, 1.0587, 1.0325)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyteal

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F18 #1F0209
analogous
#021F0A #021F18 #02181F
triadic
#021F18 #18021F #1F1802
tetradic
#021F18 #0A021F #1F0209 #181F02
square
#021F18 #0A021F #1F0209 #181F02
split-complementary
#021F18 #1F0218 #1F0A02
monochromatic
#021D16 #021D16 #021F18 #065845 #099271

Accessibility & contrast

On white

17.33
#021F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#021F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021F18
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F18#FFFFFF#000000##FFFFFF
##021F181.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1C18
Deuteranopia (green-blind)
#191919
Tritanopia (blue-blind)
#001F1D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #021f18;
/* rgb */ color: rgb(2, 31, 24);
/* oklch */ color: oklch(21.5% 0.038 174.0);
Tailwind
colors: {
  custom: {
    50: '#465a54',
    500: '#021f18',
    950: '#000000',
  },
}
SCSS
$custom: #021f18;
$custom-light: #465a54;
$custom-dark: #000000;
JSON
{
  "hex": "#021f18",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 24
  },
  "hsl": {
    "h": 165.517,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.21478,
    "c": 0.03822,
    "h": 174
  },
  "luminance": 0.01059
}

Semantic roles & 50–950 ramp

primary
#021F18
secondary
#65182B
accent
#2A5DFE
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000402
muted
#777978

Preview Lab

Preview with #021F18

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

Preview Lab → · Contrast checker → · Palette generator →

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