#1F511F#1F511F

#1F511F is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.8% C 0.096 H 143.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1F511F
RGBrgb(31, 81, 31)
HSLhsl(120, 45%, 22%)
HSVhsv(120, 62%, 32%)
CMYKcmyk(61.7%, 0%, 61.7%, 68.2%)
CIE-LABlab(30.10, -28.40, 24.11)
CIE-LCHlch(30.10, 37.26, 139.67°)
OKLaboklab(38.78% -0.0772 0.0572)
OKLCHoklch(38.78% 0.096 143.4)
XYZxyz(3.7546, 6.2748, 2.3094)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F511F #511F51
analogous
#38511F #1F511F #1F5138
triadic
#1F511F #1F1F51 #511F1F
tetradic
#1F511F #1F3851 #511F51 #51381F
square
#1F511F #1F3851 #511F51 #51381F
split-complementary
#1F511F #381F51 #511F38
monochromatic
#081608 #0E250E #1F511F #307D30 #41AA41

Accessibility & contrast

On white

9.31
#1F511F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F511F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F511F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F511F#FFFFFF#000000##FFFFFF
##1F511F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A1A
Deuteranopia (green-blind)
#4C4523
Tritanopia (blue-blind)
#174F46
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f511f;
/* rgb */ color: rgb(31, 81, 31);
/* oklch */ color: oklch(38.8% 0.096 143.4);
Tailwind
colors: {
  custom: {
    50: '#61825c',
    500: '#1f511f',
    950: '#000000',
  },
}
SCSS
$custom: #1f511f;
$custom-light: #61825c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f511f",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 31
  },
  "hsl": {
    "h": 120,
    "s": 44.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.38783,
    "c": 0.09608,
    "h": 143.4
  },
  "luminance": 0.06275
}

Semantic roles & 50–950 ramp

primary
#1F511F
secondary
#864686
accent
#53D4D4
background
#F5F8F5
surface
#EAEFE9
border
#C6CAC5
text
#050A04
muted
#797C79

Preview Lab

Preview with #1F511F

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

Preview Lab → · Contrast checker → · Palette generator →

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