#021F0C#021F0C

#021F0C is a very dark, muted green. Relative luminance 0.010; OKLCH L 21.1% C 0.052 H 152.1°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#021F0C
RGBrgb(2, 31, 12)
HSLhsl(141, 88%, 6%)
HSVhsv(141, 94%, 12%)
CMYKcmyk(93.5%, 0%, 61.3%, 87.8%)
CIE-LABlab(9.15, -15.64, 8.43)
CIE-LCHlch(9.15, 17.76, 151.67°)
OKLaboklab(21.11% -0.0456 0.0241)
OKLCHoklch(21.11% 0.052 152.1)
XYZxyz(0.5813, 1.0194, 0.5139)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F0C #1F0215
analogous
#071F02 #021F0C #021F1B
triadic
#021F0C #0C021F #1F0C02
tetradic
#021F0C #02071F #1F0215 #1F1B02
square
#021F0C #02071F #1F0215 #1F1B02
split-complementary
#021F0C #1B021F #1F0207
monochromatic
#021D0B #021D0B #021F0C #065822 #099239

Accessibility & contrast

On white

17.44
#021F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#021F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021F0C
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F0C#FFFFFF#000000##FFFFFF
##021F0C1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1B0B
Deuteranopia (green-blind)
#1B190D
Tritanopia (blue-blind)
#001E1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #021f0c;
/* rgb */ color: rgb(2, 31, 12);
/* oklch */ color: oklch(21.1% 0.052 152.1);
Tailwind
colors: {
  custom: {
    50: '#465a4c',
    500: '#021f0c',
    950: '#000000',
  },
}
SCSS
$custom: #021f0c;
$custom-light: #465a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#021f0c",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 12
  },
  "hsl": {
    "h": 140.69,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.21109,
    "c": 0.0516,
    "h": 152.1
  },
  "luminance": 0.01019
}

Semantic roles & 50–950 ramp

primary
#021F0C
secondary
#65184A
accent
#2AB5FE
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000401
muted
#777977

Preview Lab

Preview with #021F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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