#1F2D02#1F2D02

#1F2D02 is a dark, moderate yellow-green. Relative luminance 0.022; OKLCH L 27.4% C 0.067 H 126.3°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#1F2D02
RGBrgb(31, 45, 2)
HSLhsl(80, 91%, 9%)
HSVhsv(80, 96%, 18%)
CMYKcmyk(31.1%, 0%, 95.6%, 82.4%)
CIE-LABlab(16.37, -13.70, 22.54)
CIE-LCHlch(16.37, 26.38, 121.29°)
OKLaboklab(27.44% -0.0399 0.0543)
OKLCHoklch(27.44% 0.067 126.3)
XYZxyz(1.5144, 2.1724, 0.3970)
Luminance0.0217 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D02 #10022D
analogous
#2D2602 #1F2D02 #0A2D02
triadic
#1F2D02 #021F2D #2D021F
tetradic
#1F2D02 #022D26 #10022D #2D020A
square
#1F2D02 #022D26 #10022D #2D020A
split-complementary
#1F2D02 #020A2D #26022D
monochromatic
#141D01 #141D01 #1F2D02 #476805 #70A207

Accessibility & contrast

On white

14.64
#1F2D02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F2D02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D02
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D02#FFFFFF#000000##FFFFFF
##1F2D021.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#302900
Deuteranopia (green-blind)
#2E2805
Tritanopia (blue-blind)
#212A25
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1f2d02;
/* rgb */ color: rgb(31, 45, 2);
/* oklch */ color: oklch(27.4% 0.067 126.3);
Tailwind
colors: {
  custom: {
    50: '#5c6648',
    500: '#1f2d02',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d02;
$custom-light: #5c6648;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d02",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 2
  },
  "hsl": {
    "h": 79.535,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.27441,
    "c": 0.06733,
    "h": 126.3
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#1F2D02
secondary
#361972
accent
#29FF6F
background
#F5F6F4
surface
#E9EBE6
border
#C5C6C2
text
#040500
muted
#797A77

Preview Lab

Preview with #1F2D02

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

Preview Lab → · Contrast checker → · Palette generator →

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