#1F2F02#1F2F02

#1F2F02 is a dark, moderate yellow-green. Relative luminance 0.023; OKLCH L 28.1% C 0.070 H 127.6°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#1F2F02
RGBrgb(31, 47, 2)
HSLhsl(81, 92%, 10%)
HSVhsv(81, 96%, 18%)
CMYKcmyk(34%, 0%, 95.7%, 81.6%)
CIE-LABlab(17.13, -14.84, 23.48)
CIE-LCHlch(17.13, 27.77, 122.29°)
OKLaboklab(28.06% -0.0429 0.0557)
OKLCHoklch(28.06% 0.07 127.6)
XYZxyz(1.5926, 2.3287, 0.4230)
Luminance0.0233 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F02 #12022F
analogous
#2F2902 #1F2F02 #092F02
triadic
#1F2F02 #021F2F #2F021F
tetradic
#1F2F02 #022F29 #12022F #2F0209
square
#1F2F02 #022F29 #12022F #2F0209
split-complementary
#1F2F02 #02092F #29022F
monochromatic
#131D01 #131D01 #1F2F02 #466A04 #6CA407

Accessibility & contrast

On white

14.33
#1F2F02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1F2F02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F02
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F02#FFFFFF#000000##FFFFFF
##1F2F021.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#322B00
Deuteranopia (green-blind)
#302A05
Tritanopia (blue-blind)
#212C27
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1f2f02;
/* rgb */ color: rgb(31, 47, 2);
/* oklch */ color: oklch(28.1% 0.070 127.6);
Tailwind
colors: {
  custom: {
    50: '#5c6748',
    500: '#1f2f02',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f02;
$custom-light: #5c6748;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f02",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 2
  },
  "hsl": {
    "h": 81.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.28057,
    "c": 0.07028,
    "h": 127.6
  },
  "luminance": 0.02329
}

Semantic roles & 50–950 ramp

primary
#1F2F02
secondary
#391974
accent
#29FF75
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #1F2F02

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

Preview Lab → · Contrast checker → · Palette generator →

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