#1F5211#1F5211

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

Color values

HEX#1F5211
RGBrgb(31, 82, 17)
HSLhsl(107, 66%, 19%)
HSVhsv(107, 79%, 32%)
CMYKcmyk(62.2%, 0%, 79.3%, 67.8%)
CIE-LABlab(30.32, -30.44, 31.23)
CIE-LCHlch(30.32, 43.61, 134.27°)
OKLaboklab(38.92% -0.0836 0.0706)
OKLCHoklch(38.92% 0.109 139.8)
XYZxyz(3.6834, 6.3660, 1.5649)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5211 #441152
analogous
#405211 #1F5211 #115224
triadic
#1F5211 #111F52 #52111F
tetradic
#1F5211 #114052 #441152 #522411
square
#1F5211 #114052 #441152 #522411
split-complementary
#1F5211 #241152 #521140
monochromatic
#0A1905 #0C1F06 #1F5211 #32851C #45B726

Accessibility & contrast

On white

9.24
#1F5211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F5211
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5211#FFFFFF#000000##FFFFFF
##1F52111.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f5211;
/* rgb */ color: rgb(31, 82, 17);
/* oklch */ color: oklch(38.9% 0.109 139.8);
Tailwind
colors: {
  custom: {
    50: '#628354',
    500: '#1f5211',
    950: '#000000',
  },
}
SCSS
$custom: #1f5211;
$custom-light: #628354;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5211",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 107.077,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3892,
    "c": 0.10944,
    "h": 139.8
  },
  "luminance": 0.06366
}

Semantic roles & 50–950 ramp

primary
#1F5211
secondary
#78348B
accent
#3FE9C4
background
#F6F8F4
surface
#EBEFE8
border
#C6CAC4
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5211

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

Preview Lab → · Contrast checker → · Palette generator →

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