#1F510E#1F510E

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

Color values

HEX#1F510E
RGBrgb(31, 81, 14)
HSLhsl(105, 71%, 19%)
HSVhsv(105, 83%, 32%)
CMYKcmyk(61.7%, 0%, 82.7%, 68.2%)
CIE-LABlab(29.93, -30.27, 32.06)
CIE-LCHlch(29.93, 44.09, 133.35°)
OKLaboklab(38.59% -0.0833 0.0719)
OKLCHoklch(38.59% 0.11 139.2)
XYZxyz(3.5866, 6.2076, 1.4246)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F510E #400E51
analogous
#40510E #1F510E #0E511E
triadic
#1F510E #0E1F51 #510E1F
tetradic
#1F510E #0E4051 #400E51 #511E0E
square
#1F510E #0E4051 #400E51 #511E0E
split-complementary
#1F510E #1E0E51 #510E40
monochromatic
#0A1A05 #0B1D05 #1F510E #338517 #47B920

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #1f510e;
/* rgb */ color: rgb(31, 81, 14);
/* oklch */ color: oklch(38.6% 0.110 139.2);
Tailwind
colors: {
  custom: {
    50: '#628252',
    500: '#1f510e',
    950: '#000000',
  },
}
SCSS
$custom: #1f510e;
$custom-light: #628252;
$custom-dark: #000000;
JSON
{
  "hex": "#1f510e",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 14
  },
  "hsl": {
    "h": 104.776,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38594,
    "c": 0.11005,
    "h": 139.2
  },
  "luminance": 0.06208
}

Semantic roles & 50–950 ramp

primary
#1F510E
secondary
#742F8C
accent
#3AEDC0
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F510E

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

Preview Lab → · Contrast checker → · Palette generator →

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