#1F541B#1F541B

#1F541B is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.6% C 0.104 H 142.2°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#1F541B
RGBrgb(31, 84, 27)
HSLhsl(116, 51%, 22%)
HSVhsv(116, 68%, 33%)
CMYKcmyk(63.1%, 0%, 67.9%, 67.1%)
CIE-LABlab(31.14, -30.24, 27.43)
CIE-LCHlch(31.14, 40.83, 137.79°)
OKLaboklab(39.63% -0.0824 0.064)
OKLCHoklch(39.63% 0.104 142.2)
XYZxyz(3.9330, 6.7107, 2.1247)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F541B #501B54
analogous
#3C541B #1F541B #1B5434
triadic
#1F541B #1B1F54 #541B1F
tetradic
#1F541B #1B3C54 #501B54 #54341B
square
#1F541B #1B3C54 #501B54 #54341B
split-complementary
#1F541B #341B54 #541B3C
monochromatic
#091707 #0E260C #1F541B #30822A #41B139

Accessibility & contrast

On white

8.97
#1F541B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#1F541B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F541B
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F541B#FFFFFF#000000##FFFFFF
##1F541B1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C14
Deuteranopia (green-blind)
#4F4820
Tritanopia (blue-blind)
#175148
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f541b;
/* rgb */ color: rgb(31, 84, 27);
/* oklch */ color: oklch(39.6% 0.104 142.2);
Tailwind
colors: {
  custom: {
    50: '#61855a',
    500: '#1f541b',
    950: '#000000',
  },
}
SCSS
$custom: #1f541b;
$custom-light: #61855a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f541b",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 27
  },
  "hsl": {
    "h": 115.789,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.39628,
    "c": 0.10432,
    "h": 142.2
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#1F541B
secondary
#85418A
accent
#4DDBD1
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#050B04
muted
#7A7C79

Preview Lab

Preview with #1F541B

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

Preview Lab → · Contrast checker → · Palette generator →

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