#1F4A0F#1F4A0F

#1F4A0F is a dark, moderate green. Relative luminance 0.052; OKLCH L 36.5% C 0.100 H 138.7°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#1F4A0F
RGBrgb(31, 74, 15)
HSLhsl(104, 66%, 17%)
HSVhsv(104, 80%, 29%)
CMYKcmyk(58.1%, 0%, 79.7%, 71%)
CIE-LABlab(27.36, -27.15, 29.09)
CIE-LCHlch(27.36, 39.79, 133.03°)
OKLaboklab(36.48% -0.0749 0.0658)
OKLCHoklch(36.48% 0.1 138.7)
XYZxyz(3.1000, 5.2231, 1.2967)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A0F #3A0F4A
analogous
#3C4A0F #1F4A0F #0F4A1D
triadic
#1F4A0F #0F1F4A #4A0F1F
tetradic
#1F4A0F #0F3C4A #3A0F4A #4A1D0F
square
#1F4A0F #0F3C4A #3A0F4A #4A1D0F
split-complementary
#1F4A0F #1D0F4A #4A0F3C
monochromatic
#0B1905 #0B1905 #1F4A0F #347D19 #4AB024

Accessibility & contrast

On white

10.27
#1F4A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F4A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A0F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A0F#FFFFFF#000000##FFFFFF
##1F4A0F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C4306
Deuteranopia (green-blind)
#473F15
Tritanopia (blue-blind)
#1B473E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f4a0f;
/* rgb */ color: rgb(31, 74, 15);
/* oklch */ color: oklch(36.5% 0.100 138.7);
Tailwind
colors: {
  custom: {
    50: '#607d52',
    500: '#1f4a0f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a0f;
$custom-light: #607d52;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a0f",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 15
  },
  "hsl": {
    "h": 103.729,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36478,
    "c": 0.09967,
    "h": 138.7
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#1F4A0F
secondary
#6E3084
accent
#3FE9BB
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #1F4A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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