#1F5210#1F5210

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

Color values

HEX#1F5210
RGBrgb(31, 82, 16)
HSLhsl(106, 67%, 19%)
HSVhsv(106, 80%, 32%)
CMYKcmyk(62.2%, 0%, 80.5%, 67.8%)
CIE-LABlab(30.31, -30.53, 31.64)
CIE-LCHlch(30.31, 43.97, 133.98°)
OKLaboklab(38.91% -0.0839 0.0713)
OKLCHoklch(38.91% 0.11 139.6)
XYZxyz(3.6757, 6.3630, 1.5246)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5210 #431052
analogous
#405210 #1F5210 #105222
triadic
#1F5210 #101F52 #52101F
tetradic
#1F5210 #104052 #431052 #522210
square
#1F5210 #104052 #431052 #522210
split-complementary
#1F5210 #221052 #521040
monochromatic
#0A1A05 #0C1F06 #1F5210 #32851A #46B824

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F5210#FFFFFF#000000##FFFFFF
##1F52101.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)
#554A04
Deuteranopia (green-blind)
#4E4617
Tritanopia (blue-blind)
#194F45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f5210;
/* rgb */ color: rgb(31, 82, 16);
/* oklch */ color: oklch(38.9% 0.110 139.6);
Tailwind
colors: {
  custom: {
    50: '#628353',
    500: '#1f5210',
    950: '#000000',
  },
}
SCSS
$custom: #1f5210;
$custom-light: #628353;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5210",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 16
  },
  "hsl": {
    "h": 106.364,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.38912,
    "c": 0.11011,
    "h": 139.6
  },
  "luminance": 0.06363
}

Semantic roles & 50–950 ramp

primary
#1F5210
secondary
#77328C
accent
#3EEAC3
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5210

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

Preview Lab → · Contrast checker → · Palette generator →

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