#1F370A#1F370A

#1F370A is a dark, moderate yellow-green. Relative luminance 0.030; OKLCH L 30.6% C 0.075 H 133.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#1F370A
RGBrgb(31, 55, 10)
HSLhsl(92, 69%, 13%)
HSVhsv(92, 82%, 22%)
CMYKcmyk(43.6%, 0%, 81.8%, 78.4%)
CIE-LABlab(20.23, -18.43, 23.85)
CIE-LCHlch(20.23, 30.14, 127.69°)
OKLaboklab(30.61% -0.0517 0.0545)
OKLCHoklch(30.61% 0.075 133.5)
XYZxyz(1.9860, 3.0455, 0.7703)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F370A #220A37
analogous
#35370A #1F370A #0A370B
triadic
#1F370A #0A1F37 #370A1F
tetradic
#1F370A #0A3537 #220A37 #370B0A
square
#1F370A #0A3537 #220A37 #370B0A
split-complementary
#1F370A #0B0A37 #370A35
monochromatic
#0F1A05 #0F1A05 #1F370A #3C6B13 #599F1D

Accessibility & contrast

On white

13.05
#1F370A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F370A
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F370A#FFFFFF#000000##FFFFFF
##1F370A1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3204
Deuteranopia (green-blind)
#36300E
Tritanopia (blue-blind)
#1F342E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f370a;
/* rgb */ color: rgb(31, 55, 10);
/* oklch */ color: oklch(30.6% 0.075 133.5);
Tailwind
colors: {
  custom: {
    50: '#5d6e4c',
    500: '#1f370a',
    950: '#000000',
  },
}
SCSS
$custom: #1f370a;
$custom-light: #5d6e4c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f370a",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 10
  },
  "hsl": {
    "h": 92,
    "s": 69.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.30608,
    "c": 0.07508,
    "h": 133.5
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#1F370A
secondary
#512874
accent
#3CEC9A
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F370A

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

Preview Lab → · Contrast checker → · Palette generator →

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