#021F0D#021F0D

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

Color values

HEX#021F0D
RGBrgb(2, 31, 13)
HSLhsl(143, 88%, 6%)
HSVhsv(143, 94%, 12%)
CMYKcmyk(93.5%, 0%, 58.1%, 87.8%)
CIE-LABlab(9.17, -15.47, 7.99)
CIE-LCHlch(9.17, 17.41, 152.68°)
OKLaboklab(21.13% -0.045 0.0226)
OKLCHoklch(21.13% 0.05 153.3)
XYZxyz(0.5876, 1.0219, 0.5470)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F0D #1F0214
analogous
#061F02 #021F0D #021F1C
triadic
#021F0D #0D021F #1F0D02
tetradic
#021F0D #02061F #1F0214 #1F1C02
square
#021F0D #02061F #1F0214 #1F1C02
split-complementary
#021F0D #1C021F #1F0206
monochromatic
#021D0C #021D0C #021F0D #065825 #09923D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##021F0D#FFFFFF#000000##FFFFFF
##021F0D1.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)
#1F1B0C
Deuteranopia (green-blind)
#1B190E
Tritanopia (blue-blind)
#001E1B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #021f0d;
/* rgb */ color: rgb(2, 31, 13);
/* oklch */ color: oklch(21.1% 0.050 153.3);
Tailwind
colors: {
  custom: {
    50: '#465a4c',
    500: '#021f0d',
    950: '#000000',
  },
}
SCSS
$custom: #021f0d;
$custom-light: #465a4c;
$custom-dark: #000000;
JSON
{
  "hex": "#021f0d",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 13
  },
  "hsl": {
    "h": 142.759,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.21133,
    "c": 0.05037,
    "h": 153.3
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#021F0D
secondary
#651848
accent
#2AAEFE
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000401
muted
#777977

Preview Lab

Preview with #021F0D

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

Preview Lab → · Contrast checker → · Palette generator →

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