#1F3902#1F3902

#1F3902 is a dark, moderate yellow-green. Relative luminance 0.032; OKLCH L 31.1% C 0.085 H 132.5°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#1F3902
RGBrgb(31, 57, 2)
HSLhsl(88, 93%, 12%)
HSVhsv(88, 96%, 22%)
CMYKcmyk(45.6%, 0%, 96.5%, 77.6%)
CIE-LABlab(20.91, -20.17, 27.87)
CIE-LCHlch(20.91, 34.40, 125.89°)
OKLaboklab(31.15% -0.0572 0.0625)
OKLCHoklch(31.15% 0.085 132.5)
XYZxyz(2.0391, 3.2218, 0.5719)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3902 #1C0239
analogous
#393802 #1F3902 #033902
triadic
#1F3902 #021F39 #39021F
tetradic
#1F3902 #023938 #1C0239 #390203
square
#1F3902 #023938 #1C0239 #390203
split-complementary
#1F3902 #020339 #380239
monochromatic
#101E01 #101E01 #1F3902 #3F7404 #5FAF06

Accessibility & contrast

On white

12.77
#1F3902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F3902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3902
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3902#FFFFFF#000000##FFFFFF
##1F39021.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3400
Deuteranopia (green-blind)
#383207
Tritanopia (blue-blind)
#1F362F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f3902;
/* rgb */ color: rgb(31, 57, 2);
/* oklch */ color: oklch(31.1% 0.085 132.5);
Tailwind
colors: {
  custom: {
    50: '#5e6f49',
    500: '#1f3902',
    950: '#000000',
  },
}
SCSS
$custom: #1f3902;
$custom-light: #5e6f49;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3902",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 2
  },
  "hsl": {
    "h": 88.364,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.31148,
    "c": 0.08477,
    "h": 132.5
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#1F3902
secondary
#491A7D
accent
#29FF8E
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#040701
muted
#797A77

Preview Lab

Preview with #1F3902

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

Preview Lab → · Contrast checker → · Palette generator →

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