#1F340F#1F340F

#1F340F is a dark, moderate yellow-green. Relative luminance 0.028; OKLCH L 29.7% C 0.066 H 133.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#1F340F
RGBrgb(31, 52, 15)
HSLhsl(94, 55%, 13%)
HSVhsv(94, 71%, 20%)
CMYKcmyk(40.4%, 0%, 71.2%, 79.6%)
CIE-LABlab(19.15, -16.29, 20.29)
CIE-LCHlch(19.15, 26.02, 128.77°)
OKLaboklab(29.75% -0.0454 0.0473)
OKLCHoklch(29.75% 0.066 133.8)
XYZxyz(1.8793, 2.7817, 0.8898)
Luminance0.0278 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F340F #240F34
analogous
#31340F #1F340F #0F3411
triadic
#1F340F #0F1F34 #340F1F
tetradic
#1F340F #0F3134 #240F34 #34110F
square
#1F340F #0F3134 #240F34 #34110F
split-complementary
#1F340F #110F34 #340F31
monochromatic
#0E1807 #0E1807 #1F340F #3B631D #58932A

Accessibility & contrast

On white

13.49
#1F340F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#1F340F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F340F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F340F#FFFFFF#000000##FFFFFF
##1F340F1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36300B
Deuteranopia (green-blind)
#332E12
Tritanopia (blue-blind)
#1F322C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f340f;
/* rgb */ color: rgb(31, 52, 15);
/* oklch */ color: oklch(29.7% 0.066 133.8);
Tailwind
colors: {
  custom: {
    50: '#5c6b4f',
    500: '#1f340f',
    950: '#000000',
  },
}
SCSS
$custom: #1f340f;
$custom-light: #5c6b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f340f",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 15
  },
  "hsl": {
    "h": 94.054,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.29746,
    "c": 0.06555,
    "h": 133.8
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#1F340F
secondary
#54316E
accent
#49DF9E
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040602
muted
#797A78

Preview Lab

Preview with #1F340F

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

Preview Lab → · Contrast checker → · Palette generator →

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