#021F05#021F05

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

Color values

HEX#021F05
RGBrgb(2, 31, 5)
HSLhsl(126, 88%, 6%)
HSVhsv(126, 94%, 12%)
CMYKcmyk(93.5%, 0%, 83.9%, 87.8%)
CIE-LABlab(9.02, -16.67, 11.14)
CIE-LCHlch(9.02, 20.05, 146.25°)
OKLaboklab(20.96% -0.0499 0.0345)
OKLCHoklch(20.96% 0.061 145.3)
XYZxyz(0.5424, 1.0038, 0.3087)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F05 #1F021C
analogous
#0E1F02 #021F05 #021F14
triadic
#021F05 #05021F #1F0502
tetradic
#021F05 #020E1F #1F021C #1F1402
square
#021F05 #020E1F #1F021C #1F1402
split-complementary
#021F05 #14021F #1F020E
monochromatic
#021D05 #021D05 #021F05 #06580E #099218

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##021F05#FFFFFF#000000##FFFFFF
##021F051.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)
#201B03
Deuteranopia (green-blind)
#1C1907
Tritanopia (blue-blind)
#001E19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #021f05;
/* rgb */ color: rgb(2, 31, 5);
/* oklch */ color: oklch(21.0% 0.061 145.3);
Tailwind
colors: {
  custom: {
    50: '#465a49',
    500: '#021f05',
    950: '#000000',
  },
}
SCSS
$custom: #021f05;
$custom-light: #465a49;
$custom-dark: #000000;
JSON
{
  "hex": "#021f05",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 5
  },
  "hsl": {
    "h": 126.207,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.2096,
    "c": 0.06068,
    "h": 145.3
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#021F05
secondary
#65185D
accent
#2AE8FE
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #021F05

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

Preview Lab → · Contrast checker → · Palette generator →

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