#1F5D12#1F5D12

#1F5D12 is a dark, vivid green. Relative luminance 0.082; OKLCH L 42.2% C 0.123 H 140.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#1F5D12
RGBrgb(31, 93, 18)
HSLhsl(110, 68%, 22%)
HSVhsv(110, 81%, 36%)
CMYKcmyk(66.7%, 0%, 80.6%, 63.5%)
CIE-LABlab(34.32, -34.84, 34.83)
CIE-LCHlch(34.32, 49.26, 135.01°)
OKLaboklab(42.23% -0.0954 0.0783)
OKLCHoklch(42.23% 0.123 140.6)
XYZxyz(4.5884, 8.1632, 1.9060)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5D12 #50125D
analogous
#455D12 #1F5D12 #125D2B
triadic
#1F5D12 #121F5D #5D121F
tetradic
#1F5D12 #12455D #50125D #5D2B12
square
#1F5D12 #12455D #50125D #5D2B12
split-complementary
#1F5D12 #2B125D #5D1245
monochromatic
#091A05 #0E2A08 #1F5D12 #30901C #41C426

Accessibility & contrast

On white

7.98
#1F5D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#1F5D12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5D12
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5D12#FFFFFF#000000##FFFFFF
##1F5D121.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605403
Deuteranopia (green-blind)
#584F1A
Tritanopia (blue-blind)
#155A4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f5d12;
/* rgb */ color: rgb(31, 93, 18);
/* oklch */ color: oklch(42.2% 0.123 140.6);
Tailwind
colors: {
  custom: {
    50: '#648c56',
    500: '#1f5d12',
    950: '#000000',
  },
}
SCSS
$custom: #1f5d12;
$custom-light: #648c56;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5d12",
  "rgb": {
    "r": 31,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 109.6,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42231,
    "c": 0.12341,
    "h": 140.6
  },
  "luminance": 0.08164
}

Semantic roles & 50–950 ramp

primary
#1F5D12
secondary
#853595
accent
#3DEACC
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #1F5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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