#1F520E#1F520E

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

Color values

HEX#1F520E
RGBrgb(31, 82, 14)
HSLhsl(105, 71%, 19%)
HSVhsv(105, 83%, 32%)
CMYKcmyk(62.2%, 0%, 82.9%, 67.8%)
CIE-LABlab(30.30, -30.69, 32.42)
CIE-LCHlch(30.30, 44.64, 133.43°)
OKLaboklab(38.9% -0.0845 0.0726)
OKLCHoklch(38.9% 0.111 139.3)
XYZxyz(3.6615, 6.3573, 1.4495)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F520E #410E52
analogous
#41520E #1F520E #0E521F
triadic
#1F520E #0E1F52 #520E1F
tetradic
#1F520E #0E4152 #410E52 #521F0E
square
#1F520E #0E4152 #410E52 #521F0E
split-complementary
#1F520E #1F0E52 #520E41
monochromatic
#0A1A04 #0B1E05 #1F520E #338617 #47BB20

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F520E#FFFFFF#000000##FFFFFF
##1F520E1.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)
#554A02
Deuteranopia (green-blind)
#4E4615
Tritanopia (blue-blind)
#194F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f520e;
/* rgb */ color: rgb(31, 82, 14);
/* oklch */ color: oklch(38.9% 0.111 139.3);
Tailwind
colors: {
  custom: {
    50: '#628352',
    500: '#1f520e',
    950: '#000000',
  },
}
SCSS
$custom: #1f520e;
$custom-light: #628352;
$custom-dark: #000000;
JSON
{
  "hex": "#1f520e",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 14
  },
  "hsl": {
    "h": 105,
    "s": 70.833,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38896,
    "c": 0.11139,
    "h": 139.3
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#1F520E
secondary
#752F8C
accent
#3AEEC1
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050B02
muted
#7A7C78

Preview Lab

Preview with #1F520E

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

Preview Lab → · Contrast checker → · Palette generator →

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