#1F5A0F#1F5A0F

#1F5A0F is a dark, vivid green. Relative luminance 0.076; OKLCH L 41.3% C 0.121 H 140.0°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#1F5A0F
RGBrgb(31, 90, 15)
HSLhsl(107, 71%, 21%)
HSVhsv(107, 83%, 35%)
CMYKcmyk(65.6%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.22, -33.88, 34.88)
CIE-LCHlch(33.22, 48.62, 134.17°)
OKLaboklab(41.31% -0.093 0.0779)
OKLCHoklch(41.31% 0.121 140)
XYZxyz(4.3073, 7.6377, 1.6991)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5A0F #4A0F5A
analogous
#445A0F #1F5A0F #0F5A24
triadic
#1F5A0F #0F1F5A #5A0F1F
tetradic
#1F5A0F #0F445A #4A0F5A #5A240F
square
#1F5A0F #0F445A #4A0F5A #5A240F
split-complementary
#1F5A0F #240F5A #5A0F44
monochromatic
#091A04 #0D2606 #1F5A0F #318E18 #43C320

Accessibility & contrast

On white

8.31
#1F5A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#1F5A0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5A0F
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5A0F#FFFFFF#000000##FFFFFF
##1F5A0F1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5100
Deuteranopia (green-blind)
#554C18
Tritanopia (blue-blind)
#17574C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f5a0f;
/* rgb */ color: rgb(31, 90, 15);
/* oklch */ color: oklch(41.3% 0.121 140.0);
Tailwind
colors: {
  custom: {
    50: '#638954',
    500: '#1f5a0f',
    950: '#000000',
  },
}
SCSS
$custom: #1f5a0f;
$custom-light: #638954;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5a0f",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 107.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41311,
    "c": 0.12132,
    "h": 140
  },
  "luminance": 0.07638
}

Semantic roles & 50–950 ramp

primary
#1F5A0F
secondary
#7F3194
accent
#3AEEC8
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F5A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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