#1F5115#1F5115

#1F5115 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.7% C 0.105 H 140.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#1F5115
RGBrgb(31, 81, 21)
HSLhsl(110, 59%, 20%)
HSVhsv(110, 74%, 32%)
CMYKcmyk(61.7%, 0%, 74.1%, 68.2%)
CIE-LABlab(29.99, -29.64, 29.10)
CIE-LCHlch(29.99, 41.54, 135.52°)
OKLaboklab(38.66% -0.0811 0.0667)
OKLCHoklch(38.66% 0.105 140.6)
XYZxyz(3.6427, 6.2300, 1.7199)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5115 #471551
analogous
#3D5115 #1F5115 #155129
triadic
#1F5115 #151F51 #51151F
tetradic
#1F5115 #153D51 #471551 #512915
square
#1F5115 #153D51 #471551 #512915
split-complementary
#1F5115 #291551 #51153D
monochromatic
#091806 #0C2008 #1F5115 #328222 #44B22E

Accessibility & contrast

On white

9.35
#1F5115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F5115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5115
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5115#FFFFFF#000000##FFFFFF
##1F51151.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#53490D
Deuteranopia (green-blind)
#4D451A
Tritanopia (blue-blind)
#194E45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f5115;
/* rgb */ color: rgb(31, 81, 21);
/* oklch */ color: oklch(38.7% 0.105 140.6);
Tailwind
colors: {
  custom: {
    50: '#618256',
    500: '#1f5115',
    950: '#000000',
  },
}
SCSS
$custom: #1f5115;
$custom-light: #618256;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5115",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 110,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.38657,
    "c": 0.10507,
    "h": 140.6
  },
  "luminance": 0.0623
}

Semantic roles & 50–950 ramp

primary
#1F5115
secondary
#7C3989
accent
#46E2C8
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050A03
muted
#7A7C78

Preview Lab

Preview with #1F5115

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

Preview Lab → · Contrast checker → · Palette generator →

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