#1F2702#1F2702

#1F2702 is a dark, muted yellow-green. Relative luminance 0.017; OKLCH L 25.6% C 0.058 H 121.0°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#1F2702
RGBrgb(31, 39, 2)
HSLhsl(73, 90%, 8%)
HSVhsv(73, 95%, 15%)
CMYKcmyk(20.5%, 0%, 94.9%, 84.7%)
CIE-LABlab(14.10, -10.11, 19.64)
CIE-LCHlch(14.10, 22.09, 117.23°)
OKLaboklab(25.6% -0.0301 0.0501)
OKLCHoklch(25.6% 0.058 121)
XYZxyz(1.3016, 1.7467, 0.3260)
Luminance0.0175 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2702 #0A0227
analogous
#271C02 #1F2702 #0C2702
triadic
#1F2702 #021F27 #27021F
tetradic
#1F2702 #02271C #0A0227 #27020C
square
#1F2702 #02271C #0A0227 #27020C
split-complementary
#1F2702 #020C27 #1C0227
monochromatic
#171D01 #171D01 #1F2702 #4D6105 #7C9B08

Accessibility & contrast

On white

15.56
#1F2702 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F2702 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2702
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2702#FFFFFF#000000##FFFFFF
##1F27021.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2400
Deuteranopia (green-blind)
#292404
Tritanopia (blue-blind)
#212420
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f2702;
/* rgb */ color: rgb(31, 39, 2);
/* oklch */ color: oklch(25.6% 0.058 121.0);
Tailwind
colors: {
  custom: {
    50: '#5b6147',
    500: '#1f2702',
    950: '#000000',
  },
}
SCSS
$custom: #1f2702;
$custom-light: #5b6147;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2702",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 2
  },
  "hsl": {
    "h": 72.973,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.25603,
    "c": 0.05843,
    "h": 121
  },
  "luminance": 0.01747
}

Semantic roles & 50–950 ramp

primary
#1F2702
secondary
#2B186C
accent
#29FF57
background
#F5F5F4
surface
#E9E9E6
border
#C5C5C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2702

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

Preview Lab → · Contrast checker → · Palette generator →

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