#1F5213#1F5213

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

Color values

HEX#1F5213
RGBrgb(31, 82, 19)
HSLhsl(109, 62%, 20%)
HSVhsv(109, 77%, 32%)
CMYKcmyk(62.2%, 0%, 76.8%, 67.8%)
CIE-LABlab(30.33, -30.26, 30.38)
CIE-LCHlch(30.33, 42.88, 134.89°)
OKLaboklab(38.94% -0.083 0.0691)
OKLCHoklch(38.94% 0.108 140.2)
XYZxyz(3.6997, 6.3726, 1.6510)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5213 #461352
analogous
#3F5213 #1F5213 #135226
triadic
#1F5213 #131F52 #52131F
tetradic
#1F5213 #133F52 #461352 #522613
square
#1F5213 #133F52 #461352 #522613
split-complementary
#1F5213 #261352 #52133F
monochromatic
#091906 #0C2007 #1F5213 #32841F #45B52A

Accessibility & contrast

On white

9.23
#1F5213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F5213
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5213#FFFFFF#000000##FFFFFF
##1F52131.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A09
Deuteranopia (green-blind)
#4E4619
Tritanopia (blue-blind)
#194F46
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f5213;
/* rgb */ color: rgb(31, 82, 19);
/* oklch */ color: oklch(38.9% 0.108 140.2);
Tailwind
colors: {
  custom: {
    50: '#618355',
    500: '#1f5213',
    950: '#000000',
  },
}
SCSS
$custom: #1f5213;
$custom-light: #618355;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5213",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 19
  },
  "hsl": {
    "h": 108.571,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38939,
    "c": 0.10801,
    "h": 140.2
  },
  "luminance": 0.06373
}

Semantic roles & 50–950 ramp

primary
#1F5213
secondary
#7A368A
accent
#42E5C6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050B03
muted
#7A7C78

Preview Lab

Preview with #1F5213

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

Preview Lab → · Contrast checker → · Palette generator →

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