#1F5010#1F5010

#1F5010 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.107 H 139.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#1F5010
RGBrgb(31, 80, 16)
HSLhsl(106, 67%, 19%)
HSVhsv(106, 80%, 31%)
CMYKcmyk(61.2%, 0%, 80%, 68.6%)
CIE-LABlab(29.58, -29.68, 30.91)
CIE-LCHlch(29.58, 42.85, 133.84°)
OKLaboklab(38.31% -0.0816 0.0698)
OKLCHoklch(38.31% 0.107 139.5)
XYZxyz(3.5271, 6.0657, 1.4750)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5010 #411050
analogous
#3F5010 #1F5010 #105021
triadic
#1F5010 #101F50 #50101F
tetradic
#1F5010 #103F50 #411050 #502110
square
#1F5010 #103F50 #411050 #502110
split-complementary
#1F5010 #211050 #50103F
monochromatic
#0A1A05 #0B1D06 #1F5010 #33831A #47B624

Accessibility & contrast

On white

9.49
#1F5010 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F5010 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5010
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5010#FFFFFF#000000##FFFFFF
##1F50101.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534805
Deuteranopia (green-blind)
#4C4417
Tritanopia (blue-blind)
#1A4D44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f5010;
/* rgb */ color: rgb(31, 80, 16);
/* oklch */ color: oklch(38.3% 0.107 139.5);
Tailwind
colors: {
  custom: {
    50: '#618253',
    500: '#1f5010',
    950: '#000000',
  },
}
SCSS
$custom: #1f5010;
$custom-light: #618253;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5010",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 16
  },
  "hsl": {
    "h": 105.938,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38307,
    "c": 0.10738,
    "h": 139.5
  },
  "luminance": 0.06066
}

Semantic roles & 50–950 ramp

primary
#1F5010
secondary
#75328A
accent
#3EEAC1
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5010

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

Preview Lab → · Contrast checker → · Palette generator →

#1F5010 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva