#1F370F#1F370F

#1F370F is a dark, moderate yellow-green. Relative luminance 0.031; OKLCH L 30.7% C 0.071 H 134.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#1F370F
RGBrgb(31, 55, 15)
HSLhsl(96, 57%, 14%)
HSVhsv(96, 73%, 22%)
CMYKcmyk(43.6%, 0%, 72.7%, 78.4%)
CIE-LABlab(20.28, -17.92, 21.57)
CIE-LCHlch(20.28, 28.04, 129.72°)
OKLaboklab(30.67% -0.0498 0.05)
OKLCHoklch(30.67% 0.071 134.9)
XYZxyz(2.0174, 3.0581, 0.9358)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F370F #270F37
analogous
#33370F #1F370F #0F3713
triadic
#1F370F #0F1F37 #370F1F
tetradic
#1F370F #0F3337 #270F37 #37130F
square
#1F370F #0F3337 #270F37 #37130F
split-complementary
#1F370F #130F37 #370F33
monochromatic
#0E1807 #0E1807 #1F370F #3A671C #559729

Accessibility & contrast

On white

13.03
#1F370F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1F370F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F370F
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F370F#FFFFFF#000000##FFFFFF
##1F370F1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39320A
Deuteranopia (green-blind)
#363012
Tritanopia (blue-blind)
#1F352F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f370f;
/* rgb */ color: rgb(31, 55, 15);
/* oklch */ color: oklch(30.7% 0.071 134.9);
Tailwind
colors: {
  custom: {
    50: '#5d6e4f',
    500: '#1f370f',
    950: '#000000',
  },
}
SCSS
$custom: #1f370f;
$custom-light: #5d6e4f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f370f",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 15
  },
  "hsl": {
    "h": 96,
    "s": 57.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.30665,
    "c": 0.07058,
    "h": 134.9
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#1F370F
secondary
#573171
accent
#47E0A3
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040702
muted
#797A78

Preview Lab

Preview with #1F370F

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

Preview Lab → · Contrast checker → · Palette generator →

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