#1F470C#1F470C

#1F470C is a dark, moderate green. Relative luminance 0.048; OKLCH L 35.5% C 0.097 H 137.7°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#1F470C
RGBrgb(31, 71, 12)
HSLhsl(101, 71%, 16%)
HSVhsv(101, 83%, 28%)
CMYKcmyk(56.3%, 0%, 83.1%, 72.2%)
CIE-LABlab(26.23, -26.05, 29.22)
CIE-LCHlch(26.23, 39.15, 131.72°)
OKLaboklab(35.54% -0.0721 0.0656)
OKLCHoklch(35.54% 0.097 137.7)
XYZxyz(2.8846, 4.8241, 1.1269)
Luminance0.0482 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F470C #340C47
analogous
#3D470C #1F470C #0C4717
triadic
#1F470C #0C1F47 #470C1F
tetradic
#1F470C #0C3D47 #340C47 #47170C
square
#1F470C #0C3D47 #340C47 #47170C
split-complementary
#1F470C #170C47 #470C3D
monochromatic
#0B1A04 #0B1A04 #1F470C #367B15 #4DB01E

Accessibility & contrast

On white

10.69
#1F470C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F470C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F470C
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F470C#FFFFFF#000000##FFFFFF
##1F470C1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4003
Deuteranopia (green-blind)
#443D12
Tritanopia (blue-blind)
#1C443C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f470c;
/* rgb */ color: rgb(31, 71, 12);
/* oklch */ color: oklch(35.5% 0.097 137.7);
Tailwind
colors: {
  custom: {
    50: '#607a50',
    500: '#1f470c',
    950: '#000000',
  },
}
SCSS
$custom: #1f470c;
$custom-light: #607a50;
$custom-dark: #000000;
JSON
{
  "hex": "#1f470c",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 12
  },
  "hsl": {
    "h": 100.678,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.35537,
    "c": 0.09749,
    "h": 137.7
  },
  "luminance": 0.04824
}

Semantic roles & 50–950 ramp

primary
#1F470C
secondary
#672C83
accent
#3AEEB4
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F470C

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

Preview Lab → · Contrast checker → · Palette generator →

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