#1F2902#1F2902

#1F2902 is a dark, moderate yellow-green. Relative luminance 0.019; OKLCH L 26.2% C 0.061 H 123.0°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#1F2902
RGBrgb(31, 41, 2)
HSLhsl(75, 91%, 8%)
HSVhsv(75, 95%, 16%)
CMYKcmyk(24.4%, 0%, 95.1%, 83.9%)
CIE-LABlab(14.85, -11.33, 20.62)
CIE-LCHlch(14.85, 23.53, 118.79°)
OKLaboklab(26.21% -0.0334 0.0515)
OKLCHoklch(26.21% 0.061 123)
XYZxyz(1.3690, 1.8816, 0.3485)
Luminance0.0188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2902 #0C0229
analogous
#291F02 #1F2902 #0B2902
triadic
#1F2902 #021F29 #29021F
tetradic
#1F2902 #02291F #0C0229 #29020B
square
#1F2902 #02291F #0C0229 #29020B
split-complementary
#1F2902 #020B29 #1F0229
monochromatic
#161D01 #161D01 #1F2902 #4B6305 #779E08

Accessibility & contrast

On white

15.26
#1F2902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F2902 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2902
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2902#FFFFFF#000000##FFFFFF
##1F29021.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2600
Deuteranopia (green-blind)
#2B2505
Tritanopia (blue-blind)
#212621
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f2902;
/* rgb */ color: rgb(31, 41, 2);
/* oklch */ color: oklch(26.2% 0.061 123.0);
Tailwind
colors: {
  custom: {
    50: '#5b6247',
    500: '#1f2902',
    950: '#000000',
  },
}
SCSS
$custom: #1f2902;
$custom-light: #5b6247;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2902",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 2
  },
  "hsl": {
    "h": 75.385,
    "s": 90.698,
    "l": 8.431
  },
  "oklch": {
    "l": 0.26213,
    "c": 0.06138,
    "h": 123
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#1F2902
secondary
#2F196E
accent
#29FF60
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2902

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

Preview Lab → · Contrast checker → · Palette generator →

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