#1F340A#1F340A

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

Color values

HEX#1F340A
RGBrgb(31, 52, 10)
HSLhsl(90, 68%, 12%)
HSVhsv(90, 81%, 20%)
CMYKcmyk(40.4%, 0%, 80.8%, 79.6%)
CIE-LABlab(19.09, -16.82, 22.56)
CIE-LCHlch(19.09, 28.15, 126.71°)
OKLaboklab(29.69% -0.0473 0.052)
OKLCHoklch(29.69% 0.07 132.3)
XYZxyz(1.8478, 2.7691, 0.7242)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F340A #1F0A34
analogous
#34340A #1F340A #0A340A
triadic
#1F340A #0A1F34 #340A1F
tetradic
#1F340A #0A3434 #1F0A34 #340A0A
square
#1F340A #0A3434 #1F0A34 #340A0A
split-complementary
#1F340A #0A0A34 #340A34
monochromatic
#0F1A05 #0F1A05 #1F340A #3E6714 #5C9B1E

Accessibility & contrast

On white

13.52
#1F340A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F340A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F340A
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F340A#FFFFFF#000000##FFFFFF
##1F340A1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#372F05
Deuteranopia (green-blind)
#342E0E
Tritanopia (blue-blind)
#1F322C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f340a;
/* rgb */ color: rgb(31, 52, 10);
/* oklch */ color: oklch(29.7% 0.070 132.3);
Tailwind
colors: {
  custom: {
    50: '#5d6b4c',
    500: '#1f340a',
    950: '#000000',
  },
}
SCSS
$custom: #1f340a;
$custom-light: #5d6b4c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f340a",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 10
  },
  "hsl": {
    "h": 90,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.29686,
    "c": 0.07032,
    "h": 132.3
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#1F340A
secondary
#4D2871
accent
#3DEB94
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F340A

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

Preview Lab → · Contrast checker → · Palette generator →

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