#1F370E#1F370E

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

Color values

HEX#1F370E
RGBrgb(31, 55, 14)
HSLhsl(95, 59%, 14%)
HSVhsv(95, 75%, 22%)
CMYKcmyk(43.6%, 0%, 74.5%, 78.4%)
CIE-LABlab(20.26, -18.03, 22.08)
CIE-LCHlch(20.26, 28.50, 129.24°)
OKLaboklab(30.65% -0.0502 0.051)
OKLCHoklch(30.65% 0.072 134.6)
XYZxyz(2.0105, 3.0553, 0.8992)
Luminance0.0306 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F370E #260E37
analogous
#33370E #1F370E #0E3711
triadic
#1F370E #0E1F37 #370E1F
tetradic
#1F370E #0E3337 #260E37 #37110E
square
#1F370E #0E3337 #260E37 #37110E
split-complementary
#1F370E #110E37 #370E33
monochromatic
#0E1806 #0E1806 #1F370E #3A681A #569927

Accessibility & contrast

On white

13.04
#1F370E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F370E
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F370E#FFFFFF#000000##FFFFFF
##1F370E1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393209
Deuteranopia (green-blind)
#363011
Tritanopia (blue-blind)
#1F352E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f370e;
/* rgb */ color: rgb(31, 55, 14);
/* oklch */ color: oklch(30.7% 0.072 134.6);
Tailwind
colors: {
  custom: {
    50: '#5d6e4e',
    500: '#1f370e',
    950: '#000000',
  },
}
SCSS
$custom: #1f370e;
$custom-light: #5d6e4e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f370e",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 14
  },
  "hsl": {
    "h": 95.122,
    "s": 59.42,
    "l": 13.529
  },
  "oklch": {
    "l": 0.30653,
    "c": 0.07155,
    "h": 134.6
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#1F370E
secondary
#562F72
accent
#45E3A1
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040702
muted
#797A78

Preview Lab

Preview with #1F370E

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

Preview Lab → · Contrast checker → · Palette generator →

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