#1F340B#1F340B

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

Color values

HEX#1F340B
RGBrgb(31, 52, 11)
HSLhsl(91, 65%, 12%)
HSVhsv(91, 79%, 20%)
CMYKcmyk(40.4%, 0%, 78.8%, 79.6%)
CIE-LABlab(19.10, -16.73, 22.16)
CIE-LCHlch(19.10, 27.76, 127.06°)
OKLaboklab(29.7% -0.0469 0.0512)
OKLCHoklch(29.7% 0.069 132.5)
XYZxyz(1.8534, 2.7714, 0.7538)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F340B #200B34
analogous
#33340B #1F340B #0B340C
triadic
#1F340B #0B1F34 #340B1F
tetradic
#1F340B #0B3334 #200B34 #340C0B
square
#1F340B #0B3334 #200B34 #340C0B
split-complementary
#1F340B #0C0B34 #340B33
monochromatic
#0F1905 #0F1905 #1F340B #3D6716 #5B9920

Accessibility & contrast

On white

13.51
#1F340B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F340B
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F340B#FFFFFF#000000##FFFFFF
##1F340B1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f340b;
/* rgb */ color: rgb(31, 52, 11);
/* oklch */ color: oklch(29.7% 0.069 132.5);
Tailwind
colors: {
  custom: {
    50: '#5d6b4c',
    500: '#1f340b',
    950: '#000000',
  },
}
SCSS
$custom: #1f340b;
$custom-light: #5d6b4c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f340b",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 11
  },
  "hsl": {
    "h": 90.732,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.29696,
    "c": 0.06943,
    "h": 132.5
  },
  "luminance": 0.02771
}

Semantic roles & 50–950 ramp

primary
#1F340B
secondary
#4E2A71
accent
#40E896
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040601
muted
#797A77

Preview Lab

Preview with #1F340B

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

Preview Lab → · Contrast checker → · Palette generator →

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