#1F520D#1F520D

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

Color values

HEX#1F520D
RGBrgb(31, 82, 13)
HSLhsl(104, 73%, 19%)
HSVhsv(104, 84%, 32%)
CMYKcmyk(62.2%, 0%, 84.1%, 67.8%)
CIE-LABlab(30.29, -30.76, 32.79)
CIE-LCHlch(30.29, 44.96, 133.17°)
OKLaboklab(38.89% -0.0847 0.0732)
OKLCHoklch(38.89% 0.112 139.2)
XYZxyz(3.6549, 6.3546, 1.4147)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F520D #400D52
analogous
#41520D #1F520D #0D521D
triadic
#1F520D #0D1F52 #520D1F
tetradic
#1F520D #0D4152 #400D52 #521D0D
square
#1F520D #0D4152 #400D52 #521D0D
split-complementary
#1F520D #1D0D52 #520D41
monochromatic
#0A1A04 #0B1D05 #1F520D #338715 #47BC1E

Accessibility & contrast

On white

9.25
#1F520D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F520D
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F520D#FFFFFF#000000##FFFFFF
##1F520D1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f520d;
/* rgb */ color: rgb(31, 82, 13);
/* oklch */ color: oklch(38.9% 0.112 139.2);
Tailwind
colors: {
  custom: {
    50: '#628352',
    500: '#1f520d',
    950: '#000000',
  },
}
SCSS
$custom: #1f520d;
$custom-light: #628352;
$custom-dark: #000000;
JSON
{
  "hex": "#1f520d",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 13
  },
  "hsl": {
    "h": 104.348,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.11199,
    "h": 139.2
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#1F520D
secondary
#742E8D
accent
#38EFC0
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050B02
muted
#7A7C78

Preview Lab

Preview with #1F520D

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

Preview Lab → · Contrast checker → · Palette generator →

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