#1F5212#1F5212

#1F5212 is a dark, moderate green. Relative luminance 0.064; OKLCH L 38.9% C 0.109 H 140.0°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#1F5212
RGBrgb(31, 82, 18)
HSLhsl(108, 64%, 20%)
HSVhsv(108, 78%, 32%)
CMYKcmyk(62.2%, 0%, 78%, 67.8%)
CIE-LABlab(30.33, -30.35, 30.81)
CIE-LCHlch(30.33, 43.25, 134.57°)
OKLaboklab(38.93% -0.0833 0.0699)
OKLCHoklch(38.93% 0.109 140)
XYZxyz(3.6914, 6.3692, 1.6070)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5212 #451252
analogous
#3F5212 #1F5212 #125225
triadic
#1F5212 #121F52 #52121F
tetradic
#1F5212 #123F52 #451252 #522512
square
#1F5212 #123F52 #451252 #522512
split-complementary
#1F5212 #251252 #52123F
monochromatic
#091906 #0C2007 #1F5212 #32841D #45B628

Accessibility & contrast

On white

9.23
#1F5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#1F5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5212
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5212#FFFFFF#000000##FFFFFF
##1F52121.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A07
Deuteranopia (green-blind)
#4E4618
Tritanopia (blue-blind)
#194F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f5212;
/* rgb */ color: rgb(31, 82, 18);
/* oklch */ color: oklch(38.9% 0.109 140.0);
Tailwind
colors: {
  custom: {
    50: '#628354',
    500: '#1f5212',
    950: '#000000',
  },
}
SCSS
$custom: #1f5212;
$custom-light: #628354;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5212",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 107.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38929,
    "c": 0.10874,
    "h": 140
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#1F5212
secondary
#79358B
accent
#41E7C5
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050B03
muted
#7A7C78

Preview Lab

Preview with #1F5212

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

Preview Lab → · Contrast checker → · Palette generator →

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