#1F2B02#1F2B02

#1F2B02 is a dark, moderate yellow-green. Relative luminance 0.020; OKLCH L 26.8% C 0.064 H 124.8°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#1F2B02
RGBrgb(31, 43, 2)
HSLhsl(78, 91%, 9%)
HSVhsv(78, 95%, 17%)
CMYKcmyk(27.9%, 0%, 95.3%, 83.1%)
CIE-LABlab(15.61, -12.53, 21.59)
CIE-LCHlch(15.61, 24.96, 120.13°)
OKLaboklab(26.83% -0.0367 0.0529)
OKLCHoklch(26.83% 0.064 124.8)
XYZxyz(1.4399, 2.0234, 0.3721)
Luminance0.0202 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B02 #0E022B
analogous
#2B2302 #1F2B02 #0B2B02
triadic
#1F2B02 #021F2B #2B021F
tetradic
#1F2B02 #022B23 #0E022B #2B020B
square
#1F2B02 #022B23 #0E022B #2B020B
split-complementary
#1F2B02 #020B2B #23022B
monochromatic
#151D01 #151D01 #1F2B02 #496505 #73A007

Accessibility & contrast

On white

14.95
#1F2B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F2B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B02
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B02#FFFFFF#000000##FFFFFF
##1F2B021.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2700
Deuteranopia (green-blind)
#2C2705
Tritanopia (blue-blind)
#212823
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f2b02;
/* rgb */ color: rgb(31, 43, 2);
/* oklch */ color: oklch(26.8% 0.064 124.8);
Tailwind
colors: {
  custom: {
    50: '#5c6447',
    500: '#1f2b02',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b02;
$custom-light: #5c6447;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b02",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 2
  },
  "hsl": {
    "h": 77.561,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.26826,
    "c": 0.06436,
    "h": 124.8
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#1F2B02
secondary
#321970
accent
#29FF67
background
#F5F5F4
surface
#E9EAE6
border
#C5C6C2
text
#040500
muted
#797977

Preview Lab

Preview with #1F2B02

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

Preview Lab → · Contrast checker → · Palette generator →

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