#1F540E#1F540E

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

Color values

HEX#1F540E
RGBrgb(31, 84, 14)
HSLhsl(105, 71%, 19%)
HSVhsv(105, 83%, 33%)
CMYKcmyk(63.1%, 0%, 83.3%, 67.1%)
CIE-LABlab(31.03, -31.52, 33.13)
CIE-LCHlch(31.03, 45.73, 133.57°)
OKLaboklab(39.5% -0.0867 0.0741)
OKLCHoklch(39.5% 0.114 139.5)
XYZxyz(3.8145, 6.6633, 1.5005)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F540E #430E54
analogous
#42540E #1F540E #0E5420
triadic
#1F540E #0E1F54 #540E1F
tetradic
#1F540E #0E4254 #430E54 #54200E
square
#1F540E #0E4254 #430E54 #54200E
split-complementary
#1F540E #200E54 #540E42
monochromatic
#0A1A04 #0C2005 #1F540E #328817 #46BD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F540E#FFFFFF#000000##FFFFFF
##1F540E1.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)
#574C01
Deuteranopia (green-blind)
#504716
Tritanopia (blue-blind)
#195147
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f540e;
/* rgb */ color: rgb(31, 84, 14);
/* oklch */ color: oklch(39.5% 0.114 139.5);
Tailwind
colors: {
  custom: {
    50: '#628553',
    500: '#1f540e',
    950: '#000000',
  },
}
SCSS
$custom: #1f540e;
$custom-light: #628553;
$custom-dark: #000000;
JSON
{
  "hex": "#1f540e",
  "rgb": {
    "r": 31,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 105.429,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.395,
    "c": 0.11406,
    "h": 139.5
  },
  "luminance": 0.06664
}

Semantic roles & 50–950 ramp

primary
#1F540E
secondary
#772F8E
accent
#3AEEC2
background
#F6F8F4
surface
#EBEFE7
border
#C6CAC3
text
#060B02
muted
#7A7C78

Preview Lab

Preview with #1F540E

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

Preview Lab → · Contrast checker → · Palette generator →

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