#021F02#021F02

#021F02 is a very dark, moderate green. Relative luminance 0.010; OKLCH L 20.9% C 0.065 H 142.8°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#021F02
RGBrgb(2, 31, 2)
HSLhsl(120, 88%, 6%)
HSVhsv(120, 94%, 12%)
CMYKcmyk(93.5%, 0%, 93.5%, 87.8%)
CIE-LABlab(8.97, -17.11, 12.28)
CIE-LCHlch(8.97, 21.07, 144.33°)
OKLaboklab(20.9% -0.0521 0.0395)
OKLCHoklch(20.9% 0.065 142.8)
XYZxyz(0.5259, 0.9972, 0.2222)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F02 #1F021F
analogous
#111F02 #021F02 #021F11
triadic
#021F02 #02021F #1F0202
tetradic
#021F02 #02111F #1F021F #1F1102
square
#021F02 #02111F #1F021F #1F1102
split-complementary
#021F02 #11021F #1F0211
monochromatic
#021D02 #021D02 #021F02 #065806 #099209

Accessibility & contrast

On white

17.51
#021F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021F02
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F02#FFFFFF#000000##FFFFFF
##021F021.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201B00
Deuteranopia (green-blind)
#1C1804
Tritanopia (blue-blind)
#001E19
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #021f02;
/* rgb */ color: rgb(2, 31, 2);
/* oklch */ color: oklch(20.9% 0.065 142.8);
Tailwind
colors: {
  custom: {
    50: '#465a47',
    500: '#021f02',
    950: '#000000',
  },
}
SCSS
$custom: #021f02;
$custom-light: #465a47;
$custom-dark: #000000;
JSON
{
  "hex": "#021f02",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 2
  },
  "hsl": {
    "h": 120,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.20897,
    "c": 0.06538,
    "h": 142.8
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#021F02
secondary
#651865
accent
#2AFEFE
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #021F02

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

Preview Lab → · Contrast checker → · Palette generator →

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