#1F6818#1F6818

#1F6818 is a mid, vivid green. Relative luminance 0.103; OKLCH L 45.5% C 0.134 H 141.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#1F6818
RGBrgb(31, 104, 24)
HSLhsl(115, 63%, 25%)
HSVhsv(115, 77%, 41%)
CMYKcmyk(70.2%, 0%, 76.9%, 59.2%)
CIE-LABlab(38.30, -38.57, 36.44)
CIE-LCHlch(38.30, 53.06, 136.63°)
OKLaboklab(45.54% -0.1051 0.0825)
OKLCHoklch(45.54% 0.134 141.9)
XYZxyz(5.6799, 10.2573, 2.5445)
Luminance0.1026 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F6818 #611868
analogous
#476818 #1F6818 #186839
triadic
#1F6818 #181F68 #68181F
tetradic
#1F6818 #184768 #611868 #683918
square
#1F6818 #184768 #611868 #683918
split-complementary
#1F6818 #391868 #681847
monochromatic
#071906 #10360D #1F6818 #2E9A23 #3DCB2F

Accessibility & contrast

On white

6.88
#1F6818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#1F6818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F6818
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F6818#FFFFFF#000000##FFFFFF
##1F68181.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E0A
Deuteranopia (green-blind)
#625820
Tritanopia (blue-blind)
#0F6558
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #1f6818;
/* rgb */ color: rgb(31, 104, 24);
/* oklch */ color: oklch(45.5% 0.134 141.9);
Tailwind
colors: {
  custom: {
    50: '#66945b',
    500: '#1f6818',
    950: '#000000',
  },
}
SCSS
$custom: #1f6818;
$custom-light: #66945b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f6818",
  "rgb": {
    "r": 31,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 114.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.4554,
    "c": 0.13366,
    "h": 141.9
  },
  "luminance": 0.10258
}

Semantic roles & 50–950 ramp

primary
#1F6818
secondary
#963E9E
accent
#42E6D7
background
#F6F9F5
surface
#EBF1E9
border
#C6CBC5
text
#060D04
muted
#7A7E79

Preview Lab

Preview with #1F6818

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

Preview Lab → · Contrast checker → · Palette generator →

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