#1F2602#1F2602

#1F2602 is a dark, muted yellow-green. Relative luminance 0.017; OKLCH L 25.3% C 0.057 H 119.9°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#1F2602
RGBrgb(31, 38, 2)
HSLhsl(72, 90%, 8%)
HSVhsv(72, 95%, 15%)
CMYKcmyk(18.4%, 0%, 94.7%, 85.1%)
CIE-LABlab(13.72, -9.48, 19.15)
CIE-LCHlch(13.72, 21.37, 116.35°)
OKLaboklab(25.3% -0.0284 0.0494)
OKLCHoklch(25.3% 0.057 119.9)
XYZxyz(1.2692, 1.6819, 0.3152)
Luminance0.0168 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2602 #090226
analogous
#261B02 #1F2602 #0D2602
triadic
#1F2602 #021F26 #26021F
tetradic
#1F2602 #02261B #090226 #26020D
square
#1F2602 #02261B #090226 #26020D
split-complementary
#1F2602 #020D26 #1B0226
monochromatic
#181D02 #181D02 #1F2602 #4E6005 #7E9A08

Accessibility & contrast

On white

15.71
#1F2602 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#1F2602 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2602
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2602#FFFFFF#000000##FFFFFF
##1F26021.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292300
Deuteranopia (green-blind)
#282304
Tritanopia (blue-blind)
#22231F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f2602;
/* rgb */ color: rgb(31, 38, 2);
/* oklch */ color: oklch(25.3% 0.057 119.9);
Tailwind
colors: {
  custom: {
    50: '#5b6047',
    500: '#1f2602',
    950: '#000000',
  },
}
SCSS
$custom: #1f2602;
$custom-light: #5b6047;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2602",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 2
  },
  "hsl": {
    "h": 71.667,
    "s": 90,
    "l": 7.843
  },
  "oklch": {
    "l": 0.25299,
    "c": 0.05697,
    "h": 119.9
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#1F2602
secondary
#29186B
accent
#29FF52
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040400
muted
#797977

Preview Lab

Preview with #1F2602

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

Preview Lab → · Contrast checker → · Palette generator →

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