#1F511B#1F511B

#1F511B is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.7% C 0.100 H 142.1°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#1F511B
RGBrgb(31, 81, 27)
HSLhsl(116, 50%, 21%)
HSVhsv(116, 67%, 32%)
CMYKcmyk(61.7%, 0%, 66.7%, 68.2%)
CIE-LABlab(30.05, -28.94, 26.20)
CIE-LCHlch(30.05, 39.04, 137.85°)
OKLaboklab(38.73% -0.0789 0.0613)
OKLCHoklch(38.73% 0.1 142.1)
XYZxyz(3.7051, 6.2550, 2.0488)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F511B #4D1B51
analogous
#3A511B #1F511B #1B5132
triadic
#1F511B #1B1F51 #511B1F
tetradic
#1F511B #1B3A51 #4D1B51 #51321B
square
#1F511B #1B3A51 #4D1B51 #51321B
split-complementary
#1F511B #321B51 #511B3A
monochromatic
#091708 #0D230C #1F511B #317F2A #42AD3A

Accessibility & contrast

On white

9.33
#1F511B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F511B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F511B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F511B#FFFFFF#000000##FFFFFF
##1F511B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534915
Deuteranopia (green-blind)
#4D451F
Tritanopia (blue-blind)
#184E45
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f511b;
/* rgb */ color: rgb(31, 81, 27);
/* oklch */ color: oklch(38.7% 0.100 142.1);
Tailwind
colors: {
  custom: {
    50: '#61825a',
    500: '#1f511b',
    950: '#000000',
  },
}
SCSS
$custom: #1f511b;
$custom-light: #61825a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f511b",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 27
  },
  "hsl": {
    "h": 115.556,
    "s": 50,
    "l": 21.176
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.09991,
    "h": 142.1
  },
  "luminance": 0.06255
}

Semantic roles & 50–950 ramp

primary
#1F511B
secondary
#824187
accent
#4EDACF
background
#F5F8F5
surface
#EAEFE9
border
#C6CAC5
text
#050A04
muted
#797C79

Preview Lab

Preview with #1F511B

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

Preview Lab → · Contrast checker → · Palette generator →

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