#1F5214#1F5214

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

Color values

HEX#1F5214
RGBrgb(31, 82, 20)
HSLhsl(109, 61%, 20%)
HSVhsv(109, 76%, 32%)
CMYKcmyk(62.2%, 0%, 75.6%, 67.8%)
CIE-LABlab(30.34, -30.16, 29.94)
CIE-LCHlch(30.34, 42.50, 135.21°)
OKLaboklab(38.95% -0.0826 0.0684)
OKLCHoklch(38.95% 0.107 140.4)
XYZxyz(3.7085, 6.3761, 1.6970)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5214 #471452
analogous
#3E5214 #1F5214 #145228
triadic
#1F5214 #141F52 #52141F
tetradic
#1F5214 #143E52 #471452 #522814
square
#1F5214 #143E52 #471452 #522814
split-complementary
#1F5214 #281452 #52143E
monochromatic
#091906 #0C2108 #1F5214 #328320 #44B42C

Accessibility & contrast

On white

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

On black

2.28
#1F5214 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1F5214#FFFFFF#000000##FFFFFF
##1F52141.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f5214;
/* rgb */ color: rgb(31, 82, 20);
/* oklch */ color: oklch(38.9% 0.107 140.4);
Tailwind
colors: {
  custom: {
    50: '#618355',
    500: '#1f5214',
    950: '#000000',
  },
}
SCSS
$custom: #1f5214;
$custom-light: #618355;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5214",
  "rgb": {
    "r": 31,
    "g": 82,
    "b": 20
  },
  "hsl": {
    "h": 109.355,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.38948,
    "c": 0.10726,
    "h": 140.4
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#1F5214
secondary
#7C388A
accent
#44E4C8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5214

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

Preview Lab → · Contrast checker → · Palette generator →

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