#021A0C#021A0C

#021A0C is a very dark, muted green. Relative luminance 0.008; OKLCH L 19.3% C 0.043 H 155.9°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#021A0C
RGBrgb(2, 26, 12)
HSLhsl(145, 86%, 5%)
HSVhsv(145, 92%, 10%)
CMYKcmyk(92.3%, 0%, 53.8%, 89.8%)
CIE-LABlab(7.03, -11.43, 5.34)
CIE-LCHlch(7.03, 12.62, 154.94°)
OKLaboklab(19.32% -0.0391 0.0175)
OKLCHoklch(19.32% 0.043 155.9)
XYZxyz(0.4607, 0.7782, 0.4737)
Luminance0.0078 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021A0C #1A0210
analogous
#041A02 #021A0C #021A18
triadic
#021A0C #0C021A #1A0C02
tetradic
#021A0C #02041A #1A0210 #1A1802
square
#021A0C #02041A #1A0210 #1A1802
split-complementary
#021A0C #18021A #1A0204
monochromatic
#021C0D #021C0D #021C0D #065326 #0B8C40

Accessibility & contrast

On white

18.17
#021A0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#021A0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021A0C
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021A0C#FFFFFF#000000##FFFFFF
##021A0C1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A170B
Deuteranopia (green-blind)
#16150D
Tritanopia (blue-blind)
#001A16
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #021a0c;
/* rgb */ color: rgb(2, 26, 12);
/* oklch */ color: oklch(19.3% 0.043 155.9);
Tailwind
colors: {
  custom: {
    50: '#47564c',
    500: '#021a0c',
    950: '#000000',
  },
}
SCSS
$custom: #021a0c;
$custom-light: #47564c;
$custom-dark: #000000;
JSON
{
  "hex": "#021a0c",
  "rgb": {
    "r": 2,
    "g": 26,
    "b": 12
  },
  "hsl": {
    "h": 145,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.19321,
    "c": 0.04279,
    "h": 155.9
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#021A0C
secondary
#601842
accent
#2CA5FC
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000301
muted
#777877

Preview Lab

Preview with #021A0C

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

Preview Lab → · Contrast checker → · Palette generator →

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