#1F460B#1F460B

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

Color values

HEX#1F460B
RGBrgb(31, 70, 11)
HSLhsl(100, 73%, 16%)
HSVhsv(100, 84%, 27%)
CMYKcmyk(55.7%, 0%, 84.3%, 72.5%)
CIE-LABlab(25.85, -25.68, 29.26)
CIE-LCHlch(25.85, 38.93, 131.27°)
OKLaboklab(35.22% -0.0712 0.0655)
OKLCHoklch(35.22% 0.097 137.4)
XYZxyz(2.8155, 4.6956, 1.0745)
Luminance0.0470 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F460B #320B46
analogous
#3C460B #1F460B #0B4614
triadic
#1F460B #0B1F46 #460B1F
tetradic
#1F460B #0B3C46 #320B46 #46140B
square
#1F460B #0B3C46 #320B46 #46140B
split-complementary
#1F460B #140B46 #460B3C
monochromatic
#0C1A04 #0C1A04 #1F460B #367B13 #4EB01C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F460B#FFFFFF#000000##FFFFFF
##1F460B1.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)
#493F02
Deuteranopia (green-blind)
#443C11
Tritanopia (blue-blind)
#1C433B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f460b;
/* rgb */ color: rgb(31, 70, 11);
/* oklch */ color: oklch(35.2% 0.097 137.4);
Tailwind
colors: {
  custom: {
    50: '#607a4f',
    500: '#1f460b',
    950: '#000000',
  },
}
SCSS
$custom: #1f460b;
$custom-light: #607a4f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f460b",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 11
  },
  "hsl": {
    "h": 99.661,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.35223,
    "c": 0.09673,
    "h": 137.4
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#1F460B
secondary
#652A82
accent
#38F0B1
background
#F5F7F4
surface
#EAEDE7
border
#C6C8C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F460B

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

Preview Lab → · Contrast checker → · Palette generator →

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