#1F510D#1F510D

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

Color values

HEX#1F510D
RGBrgb(31, 81, 13)
HSLhsl(104, 72%, 18%)
HSVhsv(104, 84%, 32%)
CMYKcmyk(61.7%, 0%, 84%, 68.2%)
CIE-LABlab(29.92, -30.34, 32.44)
CIE-LCHlch(29.92, 44.42, 133.09°)
OKLaboklab(38.59% -0.0836 0.0725)
OKLCHoklch(38.59% 0.111 139.1)
XYZxyz(3.5800, 6.2049, 1.3897)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F510D #3F0D51
analogous
#41510D #1F510D #0D511D
triadic
#1F510D #0D1F51 #510D1F
tetradic
#1F510D #0D4151 #3F0D51 #511D0D
square
#1F510D #0D4151 #3F0D51 #511D0D
split-complementary
#1F510D #1D0D51 #510D41
monochromatic
#0A1A04 #0B1C05 #1F510D #338615 #47BA1E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F510D#FFFFFF#000000##FFFFFF
##1F510D1.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)
#544901
Deuteranopia (green-blind)
#4D4515
Tritanopia (blue-blind)
#1A4E44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f510d;
/* rgb */ color: rgb(31, 81, 13);
/* oklch */ color: oklch(38.6% 0.111 139.1);
Tailwind
colors: {
  custom: {
    50: '#628252',
    500: '#1f510d',
    950: '#000000',
  },
}
SCSS
$custom: #1f510d;
$custom-light: #628252;
$custom-dark: #000000;
JSON
{
  "hex": "#1f510d",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 13
  },
  "hsl": {
    "h": 104.118,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38586,
    "c": 0.11065,
    "h": 139.1
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#1F510D
secondary
#732E8C
accent
#39EFBF
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F510D

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

Preview Lab → · Contrast checker → · Palette generator →

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