#1F3E08#1F3E08

#1F3E08 is a dark, moderate yellow-green. Relative luminance 0.038; OKLCH L 32.7% C 0.087 H 135.2°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#1F3E08
RGBrgb(31, 62, 8)
HSLhsl(94, 77%, 14%)
HSVhsv(94, 87%, 24%)
CMYKcmyk(50%, 0%, 87.1%, 75.7%)
CIE-LABlab(22.84, -22.14, 27.49)
CIE-LCHlch(22.84, 35.30, 128.85°)
OKLaboklab(32.75% -0.0619 0.0615)
OKLCHoklch(32.75% 0.087 135.2)
XYZxyz(2.3315, 3.7540, 0.8314)
Luminance0.0375 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E08 #27083E
analogous
#3A3E08 #1F3E08 #083E0C
triadic
#1F3E08 #081F3E #3E081F
tetradic
#1F3E08 #083A3E #27083E #3E0C08
square
#1F3E08 #083A3E #27083E #3E0C08
split-complementary
#1F3E08 #0C083E #3E083A
monochromatic
#0E1B03 #0E1B03 #1F3E08 #3A740F #55AA16

Accessibility & contrast

On white

11.99
#1F3E08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F3E08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E08
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E08#FFFFFF#000000##FFFFFF
##1F3E081.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413801
Deuteranopia (green-blind)
#3D360E
Tritanopia (blue-blind)
#1E3B34
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f3e08;
/* rgb */ color: rgb(31, 62, 8);
/* oklch */ color: oklch(32.7% 0.087 135.2);
Tailwind
colors: {
  custom: {
    50: '#5e734c',
    500: '#1f3e08',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e08;
$custom-light: #5e734c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e08",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 8
  },
  "hsl": {
    "h": 94.444,
    "s": 77.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.32745,
    "c": 0.08722,
    "h": 135.2
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#1F3E08
secondary
#57257D
accent
#34F4A2
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#050801
muted
#797B77

Preview Lab

Preview with #1F3E08

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

Preview Lab → · Contrast checker → · Palette generator →

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