#1F5312#1F5312

#1F5312 is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.2% C 0.110 H 140.1°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#1F5312
RGBrgb(31, 83, 18)
HSLhsl(108, 64%, 20%)
HSVhsv(108, 78%, 33%)
CMYKcmyk(62.7%, 0%, 78.3%, 67.5%)
CIE-LABlab(30.69, -30.78, 31.19)
CIE-LCHlch(30.69, 43.82, 134.62°)
OKLaboklab(39.23% -0.0844 0.0707)
OKLCHoklch(39.23% 0.11 140.1)
XYZxyz(3.7673, 6.5212, 1.6323)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5312 #461253
analogous
#405312 #1F5312 #125326
triadic
#1F5312 #121F53 #53121F
tetradic
#1F5312 #124053 #461253 #532612
square
#1F5312 #124053 #461253 #532612
split-complementary
#1F5312 #261253 #531240
monochromatic
#091905 #0C2107 #1F5312 #32851D #45B828

Accessibility & contrast

On white

9.11
#1F5312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F5312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5312
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5312#FFFFFF#000000##FFFFFF
##1F53121.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B07
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#195046
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f5312;
/* rgb */ color: rgb(31, 83, 18);
/* oklch */ color: oklch(39.2% 0.110 140.1);
Tailwind
colors: {
  custom: {
    50: '#628454',
    500: '#1f5312',
    950: '#000000',
  },
}
SCSS
$custom: #1f5312;
$custom-light: #628454;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5312",
  "rgb": {
    "r": 31,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 108,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.39231,
    "c": 0.11011,
    "h": 140.1
  },
  "luminance": 0.06521
}

Semantic roles & 50–950 ramp

primary
#1F5312
secondary
#7A358C
accent
#40E7C6
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050B03
muted
#7A7C78

Preview Lab

Preview with #1F5312

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

Preview Lab → · Contrast checker → · Palette generator →

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