#1F6212#1F6212

#1F6212 is a dark, vivid green. Relative luminance 0.091; OKLCH L 43.7% C 0.130 H 140.8°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#1F6212
RGBrgb(31, 98, 18)
HSLhsl(110, 69%, 23%)
HSVhsv(110, 82%, 38%)
CMYKcmyk(68.4%, 0%, 81.6%, 61.6%)
CIE-LABlab(36.12, -36.78, 36.59)
CIE-LCHlch(36.12, 51.88, 135.15°)
OKLaboklab(43.72% -0.1006 0.082)
OKLCHoklch(43.72% 0.13 140.8)
XYZxyz(5.0417, 9.0698, 2.0571)
Luminance0.0907 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F6212 #551262
analogous
#476212 #1F6212 #12622D
triadic
#1F6212 #121F62 #62121F
tetradic
#1F6212 #124762 #551262 #622D12
square
#1F6212 #124762 #551262 #622D12
split-complementary
#1F6212 #2D1262 #621247
monochromatic
#081A05 #0F2E09 #1F6212 #2F961B #40C925

Accessibility & contrast

On white

7.46
#1F6212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#1F6212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F6212
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F6212#FFFFFF#000000##FFFFFF
##1F62121.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655801
Deuteranopia (green-blind)
#5D531B
Tritanopia (blue-blind)
#135F53
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f6212;
/* rgb */ color: rgb(31, 98, 18);
/* oklch */ color: oklch(43.7% 0.130 140.8);
Tailwind
colors: {
  custom: {
    50: '#658f57',
    500: '#1f6212',
    950: '#000000',
  },
}
SCSS
$custom: #1f6212;
$custom-light: #658f57;
$custom-dark: #000000;
JSON
{
  "hex": "#1f6212",
  "rgb": {
    "r": 31,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 110.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43719,
    "c": 0.12979,
    "h": 140.8
  },
  "luminance": 0.0907
}

Semantic roles & 50–950 ramp

primary
#1F6212
secondary
#8A369A
accent
#3CECCF
background
#F6F8F5
surface
#EBF0E9
border
#C6CBC5
text
#060C03
muted
#7A7D78

Preview Lab

Preview with #1F6212

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

Preview Lab → · Contrast checker → · Palette generator →

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