#031F0F#031F0F

#031F0F is a very dark, muted green. Relative luminance 0.010; OKLCH L 21.2% C 0.047 H 155.3°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#031F0F
RGBrgb(3, 31, 15)
HSLhsl(146, 82%, 7%)
HSVhsv(146, 90%, 12%)
CMYKcmyk(90.3%, 0%, 51.6%, 87.8%)
CIE-LABlab(9.27, -14.82, 7.13)
CIE-LCHlch(9.27, 16.44, 154.31°)
OKLaboklab(21.24% -0.0427 0.0197)
OKLCHoklch(21.24% 0.047 155.3)
XYZxyz(0.6137, 1.0338, 0.6190)
Luminance0.0103 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#031F0F #1F0313
analogous
#051F03 #031F0F #031F1D
triadic
#031F0F #0F031F #1F0F03
tetradic
#031F0F #03051F #1F0313 #1F1D03
square
#031F0F #03051F #1F0313 #1F1D03
split-complementary
#031F0F #1D031F #1F0305
monochromatic
#031C0D #031C0D #031F0F #08572A #0E8F45

Accessibility & contrast

On white

17.40
#031F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#031F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #031F0F
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##031F0F#FFFFFF#000000##FFFFFF
##031F0F1.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1C0E
Deuteranopia (green-blind)
#1B1910
Tritanopia (blue-blind)
#001F1B
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #031f0f;
/* rgb */ color: rgb(3, 31, 15);
/* oklch */ color: oklch(21.2% 0.047 155.3);
Tailwind
colors: {
  custom: {
    50: '#475a4e',
    500: '#031f0f',
    950: '#000000',
  },
}
SCSS
$custom: #031f0f;
$custom-light: #475a4e;
$custom-dark: #000000;
JSON
{
  "hex": "#031f0f",
  "rgb": {
    "r": 3,
    "g": 31,
    "b": 15
  },
  "hsl": {
    "h": 145.714,
    "s": 82.353,
    "l": 6.667
  },
  "oklch": {
    "l": 0.21243,
    "c": 0.04703,
    "h": 155.3
  },
  "luminance": 0.01034
}

Semantic roles & 50–950 ramp

primary
#031F0F
secondary
#631B44
accent
#2FA2F9
background
#F4F5F4
surface
#E6E9E7
border
#C2C5C3
text
#000401
muted
#777977

Preview Lab

Preview with #031F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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