#1F4E0B#1F4E0B

#1F4E0B is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.7% C 0.108 H 138.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#1F4E0B
RGBrgb(31, 78, 11)
HSLhsl(102, 75%, 17%)
HSVhsv(102, 86%, 31%)
CMYKcmyk(60.3%, 0%, 85.9%, 69.4%)
CIE-LABlab(28.81, -29.21, 32.11)
CIE-LCHlch(28.81, 43.41, 132.30°)
OKLaboklab(37.66% -0.0807 0.0715)
OKLCHoklch(37.66% 0.108 138.5)
XYZxyz(3.3497, 5.7640, 1.2526)
Luminance0.0576 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E0B #3A0B4E
analogous
#404E0B #1F4E0B #0B4E19
triadic
#1F4E0B #0B1F4E #4E0B1F
tetradic
#1F4E0B #0B404E #3A0B4E #4E190B
square
#1F4E0B #0B404E #3A0B4E #4E190B
split-complementary
#1F4E0B #190B4E #4E0B40
monochromatic
#0B1B04 #0B1B04 #1F4E0B #348413 #4AB91A

Accessibility & contrast

On white

9.75
#1F4E0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E0B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E0B#FFFFFF#000000##FFFFFF
##1F4E0B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f4e0b;
/* rgb */ color: rgb(31, 78, 11);
/* oklch */ color: oklch(37.7% 0.108 138.5);
Tailwind
colors: {
  custom: {
    50: '#618050',
    500: '#1f4e0b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e0b;
$custom-light: #618050;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e0b",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 11
  },
  "hsl": {
    "h": 102.09,
    "s": 75.281,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37662,
    "c": 0.10779,
    "h": 138.5
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#1F4E0B
secondary
#6E2B8A
accent
#36F2BA
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#050A02
muted
#7A7C78

Preview Lab

Preview with #1F4E0B

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

Preview Lab → · Contrast checker → · Palette generator →

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