#031F02#031F02

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

Color values

HEX#031F02
RGBrgb(3, 31, 2)
HSLhsl(118, 88%, 6%)
HSVhsv(118, 94%, 12%)
CMYKcmyk(90.3%, 0%, 93.5%, 87.8%)
CIE-LABlab(9.02, -16.83, 12.37)
CIE-LCHlch(9.02, 20.89, 143.69°)
OKLaboklab(20.96% -0.051 0.0397)
OKLCHoklch(20.96% 0.065 142.1)
XYZxyz(0.5385, 1.0037, 0.2228)
Luminance0.0100 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031F02 #1E021F
analogous
#121F02 #031F02 #021F10
triadic
#031F02 #02031F #1F0203
tetradic
#031F02 #02121F #1E021F #1F1002
square
#031F02 #02121F #1E021F #1F1002
split-complementary
#031F02 #10021F #1F0212
monochromatic
#031D02 #031D02 #031F02 #095806 #0E9209

Accessibility & contrast

On white

17.49
#031F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#031F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031F02
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031F02#FFFFFF#000000##FFFFFF
##031F021.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)
#201B00
Deuteranopia (green-blind)
#1D1904
Tritanopia (blue-blind)
#001E19
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #031f02;
/* rgb */ color: rgb(3, 31, 2);
/* oklch */ color: oklch(21.0% 0.065 142.1);
Tailwind
colors: {
  custom: {
    50: '#475a47',
    500: '#031f02',
    950: '#000000',
  },
}
SCSS
$custom: #031f02;
$custom-light: #475a47;
$custom-dark: #000000;
JSON
{
  "hex": "#031f02",
  "rgb": {
    "r": 3,
    "g": 31,
    "b": 2
  },
  "hsl": {
    "h": 117.931,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.20958,
    "c": 0.06458,
    "h": 142.1
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#031F02
secondary
#621865
accent
#2AFEF7
background
#F4F5F4
surface
#E6E9E6
border
#C2C5C2
text
#000400
muted
#777977

Preview Lab

Preview with #031F02

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

Preview Lab → · Contrast checker → · Palette generator →

#031F02 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva