#1F510F#1F510F

#1F510F is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.6% C 0.109 H 139.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#1F510F
RGBrgb(31, 81, 15)
HSLhsl(105, 69%, 19%)
HSVhsv(105, 81%, 32%)
CMYKcmyk(61.7%, 0%, 81.5%, 68.2%)
CIE-LABlab(29.94, -30.19, 31.67)
CIE-LCHlch(29.94, 43.76, 133.62°)
OKLaboklab(38.6% -0.0831 0.0712)
OKLCHoklch(38.6% 0.109 139.4)
XYZxyz(3.5936, 6.2103, 1.4612)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F510F #410F51
analogous
#40510F #1F510F #0F5120
triadic
#1F510F #0F1F51 #510F1F
tetradic
#1F510F #0F4051 #410F51 #51200F
square
#1F510F #0F4051 #410F51 #51200F
split-complementary
#1F510F #200F51 #510F40
monochromatic
#0A1A05 #0B1D05 #1F510F #338519 #47B822

Accessibility & contrast

On white

9.37
#1F510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F510F
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F510F#FFFFFF#000000##FFFFFF
##1F510F1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544903
Deuteranopia (green-blind)
#4D4516
Tritanopia (blue-blind)
#1A4E44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f510f;
/* rgb */ color: rgb(31, 81, 15);
/* oklch */ color: oklch(38.6% 0.109 139.4);
Tailwind
colors: {
  custom: {
    50: '#618253',
    500: '#1f510f',
    950: '#000000',
  },
}
SCSS
$custom: #1f510f;
$custom-light: #618253;
$custom-dark: #000000;
JSON
{
  "hex": "#1f510f",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 105.455,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38601,
    "c": 0.10941,
    "h": 139.4
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#1F510F
secondary
#75318B
accent
#3CECC1
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F510F

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

Preview Lab → · Contrast checker → · Palette generator →

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