#1F2E02#1F2E02

#1F2E02 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.7% C 0.069 H 127.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#1F2E02
RGBrgb(31, 46, 2)
HSLhsl(80, 92%, 9%)
HSVhsv(80, 96%, 18%)
CMYKcmyk(32.6%, 0%, 95.7%, 82%)
CIE-LABlab(16.75, -14.27, 23.01)
CIE-LCHlch(16.75, 27.08, 121.81°)
OKLaboklab(27.75% -0.0414 0.055)
OKLCHoklch(27.75% 0.069 127)
XYZxyz(1.5530, 2.2496, 0.4098)
Luminance0.0225 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E02 #11022E
analogous
#2E2702 #1F2E02 #092E02
triadic
#1F2E02 #021F2E #2E021F
tetradic
#1F2E02 #022E27 #11022E #2E0209
square
#1F2E02 #022E27 #11022E #2E0209
split-complementary
#1F2E02 #02092E #27022E
monochromatic
#141D01 #141D01 #1F2E02 #476905 #6EA307

Accessibility & contrast

On white

14.48
#1F2E02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1F2E02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E02
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E02#FFFFFF#000000##FFFFFF
##1F2E021.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312A00
Deuteranopia (green-blind)
#2F2905
Tritanopia (blue-blind)
#212B26
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f2e02;
/* rgb */ color: rgb(31, 46, 2);
/* oklch */ color: oklch(27.7% 0.069 127.0);
Tailwind
colors: {
  custom: {
    50: '#5c6648',
    500: '#1f2e02',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e02;
$custom-light: #5c6648;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e02",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 2
  },
  "hsl": {
    "h": 80.455,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.27749,
    "c": 0.06881,
    "h": 127
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#1F2E02
secondary
#381973
accent
#29FF72
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040600
muted
#797A77

Preview Lab

Preview with #1F2E02

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

Preview Lab → · Contrast checker → · Palette generator →

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