#1F3B02#1F3B02

#1F3B02 is a dark, moderate yellow-green. Relative luminance 0.034; OKLCH L 31.8% C 0.088 H 133.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#1F3B02
RGBrgb(31, 59, 2)
HSLhsl(89, 93%, 12%)
HSVhsv(89, 97%, 23%)
CMYKcmyk(47.5%, 0%, 96.6%, 76.9%)
CIE-LABlab(21.67, -21.17, 28.69)
CIE-LCHlch(21.67, 35.66, 126.41°)
OKLaboklab(31.77% -0.0599 0.0639)
OKLCHoklch(31.77% 0.088 133.2)
XYZxyz(2.1400, 3.4235, 0.6055)
Luminance0.0342 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3B02 #1E023B
analogous
#3B3B02 #1F3B02 #023B02
triadic
#1F3B02 #021F3B #3B021F
tetradic
#1F3B02 #023B3B #1E023B #3B0202
square
#1F3B02 #023B3B #1E023B #3B0202
split-complementary
#1F3B02 #02023B #3B023B
monochromatic
#101E01 #101E01 #1F3B02 #3E7604 #5DB106

Accessibility & contrast

On white

12.46
#1F3B02 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F3B02 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3B02
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3B02#FFFFFF#000000##FFFFFF
##1F3B021.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3500
Deuteranopia (green-blind)
#3A3308
Tritanopia (blue-blind)
#1F3831
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f3b02;
/* rgb */ color: rgb(31, 59, 2);
/* oklch */ color: oklch(31.8% 0.088 133.2);
Tailwind
colors: {
  custom: {
    50: '#5e7149',
    500: '#1f3b02',
    950: '#000000',
  },
}
SCSS
$custom: #1f3b02;
$custom-light: #5e7149;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3b02",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 2
  },
  "hsl": {
    "h": 89.474,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.31766,
    "c": 0.08756,
    "h": 133.2
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#1F3B02
secondary
#4C1A7E
accent
#29FF92
background
#F5F6F4
surface
#E9ECE7
border
#C5C7C3
text
#050701
muted
#797A77

Preview Lab

Preview with #1F3B02

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

Preview Lab → · Contrast checker → · Palette generator →

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