#021F04#021F04

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

Color values

HEX#021F04
RGBrgb(2, 31, 4)
HSLhsl(124, 88%, 6%)
HSVhsv(124, 94%, 12%)
CMYKcmyk(93.5%, 0%, 87.1%, 87.8%)
CIE-LABlab(9.00, -16.82, 11.52)
CIE-LCHlch(9.00, 20.39, 145.59°)
OKLaboklab(20.94% -0.0506 0.0361)
OKLCHoklch(20.94% 0.062 144.5)
XYZxyz(0.5369, 1.0016, 0.2799)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F04 #1F021D
analogous
#0F1F02 #021F04 #021F13
triadic
#021F04 #04021F #1F0402
tetradic
#021F04 #020F1F #1F021D #1F1302
square
#021F04 #020F1F #1F021D #1F1302
split-complementary
#021F04 #13021F #1F020F
monochromatic
#021D04 #021D04 #021F04 #06580B #099213

Accessibility & contrast

On white

17.49
#021F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021F04
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F04#FFFFFF#000000##FFFFFF
##021F041.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #021f04;
/* rgb */ color: rgb(2, 31, 4);
/* oklch */ color: oklch(20.9% 0.062 144.5);
Tailwind
colors: {
  custom: {
    50: '#465a48',
    500: '#021f04',
    950: '#000000',
  },
}
SCSS
$custom: #021f04;
$custom-light: #465a48;
$custom-dark: #000000;
JSON
{
  "hex": "#021f04",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 4
  },
  "hsl": {
    "h": 124.138,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.20939,
    "c": 0.06218,
    "h": 144.5
  },
  "luminance": 0.01002
}

Semantic roles & 50–950 ramp

primary
#021F04
secondary
#65185F
accent
#2AEFFE
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #021F04

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

Preview Lab → · Contrast checker → · Palette generator →

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