#1F4B08#1F4B08

#1F4B08 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.7% C 0.105 H 137.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#1F4B08
RGBrgb(31, 75, 8)
HSLhsl(99, 81%, 16%)
HSVhsv(99, 89%, 29%)
CMYKcmyk(58.7%, 0%, 89.3%, 70.6%)
CIE-LABlab(27.68, -28.12, 32.14)
CIE-LCHlch(27.68, 42.70, 131.18°)
OKLaboklab(36.73% -0.0779 0.071)
OKLCHoklch(36.73% 0.105 137.7)
XYZxyz(3.1249, 5.3407, 1.0959)
Luminance0.0534 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B08 #34084B
analogous
#414B08 #1F4B08 #084B13
triadic
#1F4B08 #081F4B #4B081F
tetradic
#1F4B08 #08414B #34084B #4B1308
square
#1F4B08 #08414B #34084B #4B1308
split-complementary
#1F4B08 #13084B #4B0841
monochromatic
#0B1C03 #0B1C03 #1F4B08 #36820E #4DBA14

Accessibility & contrast

On white

10.15
#1F4B08 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F4B08 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B08
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B08#FFFFFF#000000##FFFFFF
##1F4B081.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E4400
Deuteranopia (green-blind)
#484010
Tritanopia (blue-blind)
#1C483F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4b08;
/* rgb */ color: rgb(31, 75, 8);
/* oklch */ color: oklch(36.7% 0.105 137.7);
Tailwind
colors: {
  custom: {
    50: '#617e4e',
    500: '#1f4b08',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b08;
$custom-light: #617e4e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b08",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 8
  },
  "hsl": {
    "h": 99.403,
    "s": 80.723,
    "l": 16.275
  },
  "oklch": {
    "l": 0.36729,
    "c": 0.10544,
    "h": 137.7
  },
  "luminance": 0.05341
}

Semantic roles & 50–950 ramp

primary
#1F4B08
secondary
#672689
accent
#31F7B3
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050A02
muted
#797C78

Preview Lab

Preview with #1F4B08

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

Preview Lab → · Contrast checker → · Palette generator →

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