#1F4E03#1F4E03

#1F4E03 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.6% C 0.112 H 137.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#1F4E03
RGBrgb(31, 78, 3)
HSLhsl(98, 93%, 16%)
HSVhsv(98, 96%, 31%)
CMYKcmyk(60.3%, 0%, 96.2%, 69.4%)
CIE-LABlab(28.76, -29.73, 35.00)
CIE-LCHlch(28.76, 45.93, 130.35°)
OKLaboklab(37.61% -0.0826 0.076)
OKLCHoklch(37.61% 0.112 137.4)
XYZxyz(3.3058, 5.7464, 1.0211)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E03 #32034E
analogous
#444E03 #1F4E03 #034E0C
triadic
#1F4E03 #031F4E #4E031F
tetradic
#1F4E03 #03444E #32034E #4E0C03
square
#1F4E03 #03444E #32034E #4E0C03
split-complementary
#1F4E03 #0C034E #4E0344
monochromatic
#0C1D01 #0C1D01 #1F4E03 #368905 #4EC408

Accessibility & contrast

On white

9.77
#1F4E03 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F4E03 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E03
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E03#FFFFFF#000000##FFFFFF
##1F4E031.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514600
Deuteranopia (green-blind)
#4B420D
Tritanopia (blue-blind)
#1B4B41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4e03;
/* rgb */ color: rgb(31, 78, 3);
/* oklch */ color: oklch(37.6% 0.112 137.4);
Tailwind
colors: {
  custom: {
    50: '#62804c',
    500: '#1f4e03',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e03;
$custom-light: #62804c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e03",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 3
  },
  "hsl": {
    "h": 97.6,
    "s": 92.593,
    "l": 15.882
  },
  "oklch": {
    "l": 0.3761,
    "c": 0.11224,
    "h": 137.4
  },
  "luminance": 0.05747
}

Semantic roles & 50–950 ramp

primary
#1F4E03
secondary
#651E8E
accent
#29FFAF
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A01
muted
#7A7C77

Preview Lab

Preview with #1F4E03

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

Preview Lab → · Contrast checker → · Palette generator →

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