#1F520B#1F520B

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

Color values

HEX#1F520B
RGBrgb(31, 82, 11)
HSLhsl(103, 76%, 18%)
HSVhsv(103, 87%, 32%)
CMYKcmyk(62.2%, 0%, 86.6%, 67.8%)
CIE-LABlab(30.28, -30.90, 33.50)
CIE-LCHlch(30.28, 45.57, 132.69°)
OKLaboklab(38.88% -0.0852 0.0744)
OKLCHoklch(38.88% 0.113 138.9)
XYZxyz(3.6426, 6.3497, 1.3502)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F520B #3E0B52
analogous
#42520B #1F520B #0B521B
triadic
#1F520B #0B1F52 #520B1F
tetradic
#1F520B #0B4252 #3E0B52 #521B0B
square
#1F520B #0B4252 #3E0B52 #521B0B
split-complementary
#1F520B #1B0B52 #520B42
monochromatic
#0A1B04 #0B1C04 #1F520B #338812 #48BE19

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F520B#FFFFFF#000000##FFFFFF
##1F520B1.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)
#4E4613
Tritanopia (blue-blind)
#1A4F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f520b;
/* rgb */ color: rgb(31, 82, 11);
/* oklch */ color: oklch(38.9% 0.113 138.9);
Tailwind
colors: {
  custom: {
    50: '#628351',
    500: '#1f520b',
    950: '#000000',
  },
}
SCSS
$custom: #1f520b;
$custom-light: #628351;
$custom-dark: #000000;
JSON
{
  "hex": "#1f520b",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 11
  },
  "hsl": {
    "h": 103.099,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38875,
    "c": 0.11312,
    "h": 138.9
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#1F520B
secondary
#722B8E
accent
#35F3BD
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050B02
muted
#7A7C78

Preview Lab

Preview with #1F520B

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

Preview Lab → · Contrast checker → · Palette generator →

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