#021F07#021F07

#021F07 is a very dark, muted green. Relative luminance 0.010; OKLCH L 21.0% C 0.058 H 147.1°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#021F07
RGBrgb(2, 31, 7)
HSLhsl(130, 88%, 6%)
HSVhsv(130, 94%, 12%)
CMYKcmyk(93.5%, 0%, 77.4%, 87.8%)
CIE-LABlab(9.06, -16.38, 10.38)
CIE-LCHlch(9.06, 19.40, 147.65°)
OKLaboklab(21% -0.0486 0.0314)
OKLCHoklch(21% 0.058 147.1)
XYZxyz(0.5533, 1.0082, 0.3664)
Luminance0.0101 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F07 #1F021A
analogous
#0C1F02 #021F07 #021F16
triadic
#021F07 #07021F #1F0702
tetradic
#021F07 #020C1F #1F021A #1F1602
square
#021F07 #020C1F #1F021A #1F1602
split-complementary
#021F07 #16021F #1F020C
monochromatic
#021D06 #021D06 #021F07 #065814 #099221

Accessibility & contrast

On white

17.48
#021F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #021F07
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F07#FFFFFF#000000##FFFFFF
##021F071.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#201B05
Deuteranopia (green-blind)
#1C1909
Tritanopia (blue-blind)
#001E1A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #021f07;
/* rgb */ color: rgb(2, 31, 7);
/* oklch */ color: oklch(21.0% 0.058 147.1);
Tailwind
colors: {
  custom: {
    50: '#465a4a',
    500: '#021f07',
    950: '#000000',
  },
}
SCSS
$custom: #021f07;
$custom-light: #465a4a;
$custom-dark: #000000;
JSON
{
  "hex": "#021f07",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 7
  },
  "hsl": {
    "h": 130.345,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.21002,
    "c": 0.05785,
    "h": 147.1
  },
  "luminance": 0.01008
}

Semantic roles & 50–950 ramp

primary
#021F07
secondary
#651858
accent
#2AD9FE
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000401
muted
#777977

Preview Lab

Preview with #021F07

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

Preview Lab → · Contrast checker → · Palette generator →

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