#1F540F#1F540F

#1F540F is a dark, moderate green. Relative luminance 0.067; OKLCH L 39.5% C 0.113 H 139.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#1F540F
RGBrgb(31, 84, 15)
HSLhsl(106, 70%, 19%)
HSVhsv(106, 82%, 33%)
CMYKcmyk(63.1%, 0%, 82.1%, 67.1%)
CIE-LABlab(31.03, -31.44, 32.76)
CIE-LCHlch(31.03, 45.41, 133.83°)
OKLaboklab(39.51% -0.0864 0.0735)
OKLCHoklch(39.51% 0.113 139.6)
XYZxyz(3.8215, 6.6661, 1.5372)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F540F #440F54
analogous
#42540F #1F540F #0F5422
triadic
#1F540F #0F1F54 #540F1F
tetradic
#1F540F #0F4254 #440F54 #54220F
square
#1F540F #0F4254 #440F54 #54220F
split-complementary
#1F540F #220F54 #540F42
monochromatic
#0A1A05 #0C2006 #1F540F #328818 #45BC22

Accessibility & contrast

On white

9.00
#1F540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1F540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F540F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F540F#FFFFFF#000000##FFFFFF
##1F540F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C02
Deuteranopia (green-blind)
#504716
Tritanopia (blue-blind)
#195147
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f540f;
/* rgb */ color: rgb(31, 84, 15);
/* oklch */ color: oklch(39.5% 0.113 139.6);
Tailwind
colors: {
  custom: {
    50: '#628553',
    500: '#1f540f',
    950: '#000000',
  },
}
SCSS
$custom: #1f540f;
$custom-light: #628553;
$custom-dark: #000000;
JSON
{
  "hex": "#1f540f",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 106.087,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39508,
    "c": 0.11344,
    "h": 139.6
  },
  "luminance": 0.06666
}

Semantic roles & 50–950 ramp

primary
#1F540F
secondary
#78318E
accent
#3BEDC3
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B03
muted
#7A7C78

Preview Lab

Preview with #1F540F

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

Preview Lab → · Contrast checker → · Palette generator →

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