#1F520F#1F520F

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

Color values

HEX#1F520F
RGBrgb(31, 82, 15)
HSLhsl(106, 69%, 19%)
HSVhsv(106, 82%, 32%)
CMYKcmyk(62.2%, 0%, 81.7%, 67.8%)
CIE-LABlab(30.30, -30.61, 32.04)
CIE-LCHlch(30.30, 44.31, 133.70°)
OKLaboklab(38.9% -0.0842 0.072)
OKLCHoklch(38.9% 0.111 139.5)
XYZxyz(3.6684, 6.3601, 1.4861)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F520F #420F52
analogous
#41520F #1F520F #0F5221
triadic
#1F520F #0F1F52 #520F1F
tetradic
#1F520F #0F4152 #420F52 #52210F
square
#1F520F #0F4152 #420F52 #52210F
split-complementary
#1F520F #210F52 #520F41
monochromatic
#0A1A05 #0B1E06 #1F520F #338618 #46B922

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F520F#FFFFFF#000000##FFFFFF
##1F520F1.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)
#554A03
Deuteranopia (green-blind)
#4E4616
Tritanopia (blue-blind)
#194F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f520f;
/* rgb */ color: rgb(31, 82, 15);
/* oklch */ color: oklch(38.9% 0.111 139.5);
Tailwind
colors: {
  custom: {
    50: '#628353',
    500: '#1f520f',
    950: '#000000',
  },
}
SCSS
$custom: #1f520f;
$custom-light: #628353;
$custom-dark: #000000;
JSON
{
  "hex": "#1f520f",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 105.672,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38904,
    "c": 0.11076,
    "h": 139.5
  },
  "luminance": 0.0636
}

Semantic roles & 50–950 ramp

primary
#1F520F
secondary
#76318C
accent
#3CECC2
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050B02
muted
#7A7C78

Preview Lab

Preview with #1F520F

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

Preview Lab → · Contrast checker → · Palette generator →

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