#1F370C#1F370C

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

Color values

HEX#1F370C
RGBrgb(31, 55, 12)
HSLhsl(93, 64%, 13%)
HSVhsv(93, 78%, 22%)
CMYKcmyk(43.6%, 0%, 78.2%, 78.4%)
CIE-LABlab(20.24, -18.24, 23.01)
CIE-LCHlch(20.24, 29.36, 128.40°)
OKLaboklab(30.63% -0.051 0.0528)
OKLCHoklch(30.63% 0.073 134)
XYZxyz(1.9976, 3.0501, 0.8312)
Luminance0.0305 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F370C #240C37
analogous
#34370C #1F370C #0C370E
triadic
#1F370C #0C1F37 #370C1F
tetradic
#1F370C #0C3437 #240C37 #370E0C
square
#1F370C #0C3437 #240C37 #370E0C
split-complementary
#1F370C #0E0C37 #370C34
monochromatic
#0E1905 #0E1905 #1F370C #3B6917 #589B22

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F370C#FFFFFF#000000##FFFFFF
##1F370C1.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)
#393207
Deuteranopia (green-blind)
#363010
Tritanopia (blue-blind)
#1F352E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f370c;
/* rgb */ color: rgb(31, 55, 12);
/* oklch */ color: oklch(30.6% 0.073 134.0);
Tailwind
colors: {
  custom: {
    50: '#5d6e4d',
    500: '#1f370c',
    950: '#000000',
  },
}
SCSS
$custom: #1f370c;
$custom-light: #5d6e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f370c",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 12
  },
  "hsl": {
    "h": 93.488,
    "s": 64.179,
    "l": 13.137
  },
  "oklch": {
    "l": 0.30629,
    "c": 0.07338,
    "h": 134
  },
  "luminance": 0.0305
}

Semantic roles & 50–950 ramp

primary
#1F370C
secondary
#542C73
accent
#41E79E
background
#F5F6F4
surface
#E9EBE7
border
#C5C6C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F370C

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

Preview Lab → · Contrast checker → · Palette generator →

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