#1F460C#1F460C

#1F460C is a dark, moderate green. Relative luminance 0.047; OKLCH L 35.2% C 0.096 H 137.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#1F460C
RGBrgb(31, 70, 12)
HSLhsl(100, 71%, 16%)
HSVhsv(100, 83%, 27%)
CMYKcmyk(55.7%, 0%, 82.9%, 72.5%)
CIE-LABlab(25.86, -25.60, 28.85)
CIE-LCHlch(25.86, 38.57, 131.58°)
OKLaboklab(35.23% -0.0709 0.0648)
OKLCHoklch(35.23% 0.096 137.6)
XYZxyz(2.8215, 4.6980, 1.1059)
Luminance0.0470 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F460C #330C46
analogous
#3C460C #1F460C #0C4616
triadic
#1F460C #0C1F46 #460C1F
tetradic
#1F460C #0C3C46 #330C46 #46160C
square
#1F460C #0C3C46 #330C46 #46160C
split-complementary
#1F460C #160C46 #460C3C
monochromatic
#0C1A04 #0C1A04 #1F460C #367A15 #4DAE1E

Accessibility & contrast

On white

10.83
#1F460C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F460C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F460C
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F460C#FFFFFF#000000##FFFFFF
##1F460C1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#493F03
Deuteranopia (green-blind)
#433C12
Tritanopia (blue-blind)
#1C433B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f460c;
/* rgb */ color: rgb(31, 70, 12);
/* oklch */ color: oklch(35.2% 0.096 137.6);
Tailwind
colors: {
  custom: {
    50: '#5f7a4f',
    500: '#1f460c',
    950: '#000000',
  },
}
SCSS
$custom: #1f460c;
$custom-light: #5f7a4f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f460c",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 12
  },
  "hsl": {
    "h": 100.345,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.35232,
    "c": 0.09607,
    "h": 137.6
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#1F460C
secondary
#662C82
accent
#3AEDB3
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F460C

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

Preview Lab → · Contrast checker → · Palette generator →

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